Near Matches
Ignore Exact
Everything
2
10 steps to becoming a Perl Ninja (idea)
See all of 10 steps to becoming a Perl Ninja
, there are 2 more in this node.
Confirm
Do you really want to send ariels a message saying you like their work?
OK
X
(
idea
)
by
ariels
Sun Jan 28 2001 at 13:29:04
Write
sub
s that modify their
argument
s via direct modification of
@_
.
The
Perl
constructs for
loop
ing are called
map
and
grep
.
Nesting
them is encouraged, as long as one of the
level
s uses
$_
as the
loop variable
.
Recursion
is also useful.
However, while and for may still be used as
statement modifier
s (perl -wle '
print
for (1..10)').
do
may be freely used. As long as it isn't paired with while.
The Perl constructs for
conditional execution
are
||
and
&&
. Both may freely be mixed with
and
and
or
if doing so saves
parentheses
.
if
is permissible
only
as a statement modifier.
unless
is permissible
either
as a modifier
or
if an
else
is included. But obviously not both.
$x, @x, %x, &x and X are all
different
; if you use one, you must use them all.
Regular expression
s.
Use
prototype
s to make your
sub
s more like
builtin
s. Then use &sub to override this behaviour.
Stupidest thing you've coded just to see if you could
CPAN
Learn C, you hippies
The *REAL* Obfuscated Perl
listen (a perl poem)
Ninjitsu
readable perl contest
Learning Perl
perl monks
obfuscated perl
Perl
regular expression
@_
Only perl can parse Perl
prototype
uncanny
$_
Discworld
Winning a Guess-Your-Age contest
English
egrep
Map