In Perl you can pass an argument to a function in the call without specifying this in the declaration of this function. Something unthinkable in c(pp), the language I kind of need to deal with.
void set_led_state(enum LedState new_state)
{
do stuff
}
Perl is one of the first languages which had “lazy programming”, even as a compiler one of the fastest when it comes to ripping strings apart and allocating the segments to a Variable “On the fly”.
Perl is also one of the most powerful languages due to that fact - anything to do with databases can be reduced to string handling - and Perl does that best!
Regexps? See string handling above!
No declaring variables, just use one, it’s there. Such stuff is cool, when you know what you’re doing! And there’s lots more…
And I do not consider myself a coder! But Perl is truly the swiss army knife in coding. It can do anything, and quite fast!
Also good to know: Perl can be compiled!
Updating your code base with your codebase? Unthinkable in very many languages. Perl has CPAN! (Yes it can do it!).
That’s all part of what makes it so powerful, especially when handling strings…
Like taking a live stock ticker flow, and feeding the key data into an array - so simple and straightforward…
my… the array only lives in the current scope.
does that mean it cannot be passed to a function?
If this is possible is it by reference or is it a copy of the array ?
If it is by reference why use my ?
perl -MCPAN -eshell
**(Lots of things happen here - just accept the defaults unless you know differntly!!)
cpan> install Bundle::CPAN
cpan> reload cpan
Around 2000 SSL wasn’t yet in broad usage, yet I needed it for systems management. The ssleay library, used in perl for SSL stuff, wasn’t included in a lot of Linux distros. Either look around for a RPM (Dag Wiers), or compile it yourself directly from CPAN - using perl!