in reply to Discipulus
listitemizator: perl -MLWP::UserAgent -e "print qq(<li>[id://$ARGV[0]|).LWP::UserAgent->new->get('http://www.perlmonks.org/index.pl?node_id='.$ARGV[0])->title,']</li>'"
closures functional programming and high order Perl
windows spawn system and filehandles
portability and filesystem redirection
Note that $, % and @ don't tell you what type variables are, they tell you what type of thing an expression returns. So $ref returns a scalar which may be a reference to an array or a hash. @$ref and @{$ref} return arrays (they are equivalent) by dereferencing $ref. The {} version is much clearer (and often required) when the expression used to get the reference is complicated.
|
---|
Replies are listed 'Best First'. | |
---|---|
Discipulus's library second cell
by Discipulus (Canon) on Oct 02, 2018 at 08:03 UTC | |
by Discipulus (Canon) on Oct 16, 2020 at 09:48 UTC |