Sponsored Content
Top Forums Programming To Perl or not to Perl, that is the question... ;o) Post 303037700 by stomp on Friday 9th of August 2019 05:40:11 PM
Old 08-09-2019
I'm not a great perl hacker either. It was my first Scripting Language after bash in Linux ~20 years ago. The syntax is uncomfortable to me. It's quite fast. It's a usable general purpose scripting language, that scales a lot beyond shell scripting. I hadn't been using it for real work for a long time now.

I would not say it is a must learn. It has some unique points in it's purpose of using. So I will probably use it, if those points matter.

- great stability of syntax (stick to version ~5.00x if you like to have that)
- great availability(still available in the newest systems)

Some people still use it for current code(e. g. Proxmox, great open source virtualization management solution and mail filtering solution).

If you like to generate good code, you may do in perl too(or even the opposite - if you like).

The version number rised considerably in the last years and wikipedia mentions that features of the not-really-used perl 6 are being integrated zu perl 5 step by step. Maybe those features are worth a look?

Perl 5 version history - Wikipedia

Its Anti-Hype atmosphere appears kind of cool to me.

Last edited by stomp; 08-09-2019 at 07:26 PM..
This User Gave Thanks to stomp For This Post:
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

PERL Question

Can anyone tell me if the copy command in PERL has the same functionality as in KSH shell in UNIX or does it actually move the file ?? $cp_stat=system("cp $ENV{OLAMEBSDIR}/data/olam.ddabal$type $ENV{OLAMDIR}/balance/data/olam.ddabal$type.$HeaderDate"); (1 Reply)
Discussion started by: frank
1 Replies

2. Shell Programming and Scripting

PERL question

Could someone tell me what is wrong with these PERL statements it is always setting the $status2 to the number inside of the brackets......why???????? if (/^Status:/) { $stat = $Fld; print "\$stat is $stat\n"; } the above is where i'm searching for a string... (1 Reply)
Discussion started by: frank
1 Replies

3. Shell Programming and Scripting

Question about Perl

Where can i find solid information about programming in Perl? Thank you in advance!!!:) (5 Replies)
Discussion started by: SolidSnake
5 Replies

4. Shell Programming and Scripting

Perl: tk question

When i run my perl/tk script, a perl window pops up behind the GUI window,, can this be hidden???? Also, can the Icon be changed, the Tk icon in every window??? (1 Reply)
Discussion started by: perleo
1 Replies

5. Shell Programming and Scripting

perl question

If I use 2 system commands in a script, will one finish before the next one starts? or will it start the first and the second at the same time? i.e. system("ps | grep rminer"); system("ls -al | grep 431"); (1 Reply)
Discussion started by: BG_JrAdmin
1 Replies

6. Shell Programming and Scripting

Perl Question

Hi everyone I am not even a novice at Perl scripting .. but had to edit one the other day. The only way I can get it to run is by prefixing 'perl' before running it - ie # perl scriptname I am running AIX. Any ideas why i have to do that ? Thanks! (2 Replies)
Discussion started by: serm
2 Replies

7. Shell Programming and Scripting

PERL I/O question

Playing with an until loop as follows: my $input; until ($input eq "quit") { print "Please enter something:"; $input = <STDIN>; chomp $input; if ($input eq "dog") { print "cat" ; } else { print "Please re-enter"; } } Something simple like this... I want to prompt the user to... (3 Replies)
Discussion started by: yesokay
3 Replies

8. Shell Programming and Scripting

Perl question!

Hi All, I am new to perl and just want to read the text file and write back it into another file with some modification. Here is my requirement: input file: USB_OTG_PATH top.usb_top.otg_top USB_HSIC_PATH top.usb_top.hsic_top .. (All starts with USB_) ... START_PATH USB_OTG_PATH.interrupt... (2 Replies)
Discussion started by: surisingh
2 Replies

9. Shell Programming and Scripting

Perl question

Hi All, I am new to Perl and got a real stupid question. We are trying to install the Date:Calc package for some calculations with dates.The security guys mentioned they won't install it as root in /usr/bin/perl but have asked us to install it in any directory and use it from there. Here's the... (2 Replies)
Discussion started by: nua7
2 Replies

10. Programming

PERL: In a perl-scripttTrying to execute another perl-script that SETS SOME VARIABLES !

I have reviewed many examples on-line about running another process (either PERL or shell command or a program), but do not find any usefull for my needs way. (Reviewed and not useful the system(), 'back ticks', exec() and open()) I would like to run another PERL-script from first one, not... (1 Reply)
Discussion started by: alex_5161
1 Replies
PDL(3pm)						User Contributed Perl Documentation						  PDL(3pm)

NAME
PDL - the Perl Data Language DESCRIPTION
(For the exported PDL constructor, pdl(), see PDL::Core) PDL is the Perl Data Language, a perl extension that is designed for scientific and bulk numeric data processing and display. It extends perl's syntax and includes fully vectorized, multidimensional array handling, plus several paths for device-independent graphics output. PDL is fast, comparable and often outperforming IDL and MATLAB in real world applications. PDL allows large N-dimensional data sets such as large images, spectra, etc to be stored efficiently and manipulated quickly. VECTORIZATION
For a description of the vectorization (also called "threading"), see PDL::Core. INTERACTIVE SHELL
The PDL package includes an interactive shell. You can learn about it, run "perldoc perldl", or run the shell "perldl" or "pdl2" and type "help". LOOKING FOR A FUNCTION
? If you want to search for a function name, you should use the PDL shell along with the "help" or "apropos" command (to do a fuzzy search). For example: pdl> apropos xval xlinvals X axis values between endpoints (see xvals). xlogvals X axis values logarithmicly spaced... xvals Fills a piddle with X index values... yvals Fills a piddle with Y index values. See the CAVEAT for xvals. zvals Fills a piddle with Z index values. See the CAVEAT for xvals. To learn more about the PDL shell, see perldl or pdl2. LANGUAGE DOCUMENTATION
Most PDL documentation describes the language features. The number of PDL pages is too great to list here. The following pages offer some guidance to help you find the documentation you need. PDL::FAQ Frequently asked questions about PDL. This page covers a lot of questions that do not fall neatly into any of the documentation categories. PDL::Tutorials A guide to PDL's tutorial-style documentation. With topics from beginner to advanced, these pages teach you various aspects of PDL step by step. PDL::Modules A guide to PDL's module reference. Modules are organized by level (foundation to advanced) and by category (graphics, numerical methods, etc) to help you find the module you need as quickly as possible. PDL::Course This page compiles PDL's tutorial and reference pages into a comprehensive course that takes you from a complete beginner level to expert. PDL::Index List of all available documentation, sorted alphabetically. If you cannot find what you are looking for, try here. MODULES
PDL includes about a dozen perl modules that form the core of the language, plus additional modules that add further functionality. The perl module "PDL" loads all of the core modules automatically, making their functions available in the current perl namespace. Some notes: SYNOPSIS See the SYNOPSIS section at the end of this document for a list of modules loaded by default. PDL::Lite and PDL::LiteF These are lighter-weight alternatives to the standard PDL module. Consider using these modules if startup time becomes an issue. Exports "use PDL;" exports a large number of routines into the calling namespace. If you want to avoid namespace pollution, you must instead "use PDL::Lite", and include any additional modules explicitly. PDL::NiceSlice Note that the PDL::NiceSlice syntax is NOT automatically loaded by "use PDL;". If you want to use the extended slicing syntax in a standalone script, you must also say "use PDL::NiceSlice;". PDL::Math The PDL::Math module has been added to the list of modules for versions later than 2.3.1. Note that PDL::Math is still not included in the PDL::Lite and PDL::LiteF start-up modules. SYNOPSIS
use PDL; # Is equivalent to the following: use PDL::Core; use PDL::Ops; use PDL::Primitive; use PDL::Ufunc; use PDL::Basic; use PDL::Slices; use PDL::Bad; use PDL::MatrixOps; use PDL::Math; use PDL::Version; use PDL::IO::Misc; use PDL::IO::FITS; use PDL::IO::Pic; use PDL::Lvalue; perl v5.14.2 2012-05-19 PDL(3pm)
All times are GMT -4. The time now is 06:12 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy