Help for this page
# Array evaluated in scalar context.
my $count = @array;
# The s/// operates on $copy.
(my $copy = $str) =~ s/\\/\\\\/g;
# Prints $x.
print($x = $y);
# Array evaluated in list context.
my @copy = @array;
# Only dies if f() returns an empty list.
# This does not die if f() returns a
# false scalar like zero or undef.
my ($x) = f() or die;
my $count = () = f();
# Prints @x.
print(@x = @y);
Use subroutines for code reuse
Master regular expressions
Write my GUIs with Perl
Abandon CGI in favor of some modern web framework
Put my code in modules
Create CPAN distributions
test and document my code as I write it
Write OOP with or without animal help
Finally switch to a modern Perl style
Create a killer application with Perl
Detoxify from Perl and PerlMonks
Choose another language because Perl is dead
Learn to program for mobile devices
Complete my secret world domination project
None, because the road to hell is paved with good intentions
Results (189 votes),