Dr. Rob Edwards from San Diego State University introduces some common Perl functions and commands
Helpful introduction for me, thank you!
That code doesn’t print the sum for the lines. It keeps summing up all the lines accumulatively instead.
Very good! I find it very helpful to learning Perl. Thanks.
> perl -e ‘my $d = 0; print defined $d’
– 0 is defined (defined is defined! please, don’t confuse people)
– false is undef or 0
– true is everything else, eg: 1
1. Library full of objects: https://metacpan.org (eg: Set::Scalar)
2. Good book: http://modernperlbooks.com/ (eg. “Packages and Namespaces”) – which not confuse.
3. Perl 5 is backward compatible and TIMTOWTDI*, this isn’t mean that perl isn’t OO http://perldoc.perl.org/perlobj.html + eg: Moose or Object::InsideOut.
this is so painfull to watch. Please spare some headaches and use python lol. Perl sucks ass
It’s amazing how terse a Perl program can become. But what’s the advantage of that programming style? Perhaps an experienced Perl programmer will understand the code but to me it appears inscrutable.