Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: Hidden features of Perl

by ccn (Vicar)
on Aug 10, 2009 at 19:14 UTC ( #787393=note: print w/replies, xml ) Need Help??


in reply to Re: Hidden features of Perl
in thread Hidden features of Perl

Tadpole secret operator ~~($$..!$$) can be used as a kind of counter
print $_ , ' => ', ~~($$..!$$), "\n" for qw(Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec);

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://787393]
help
Chatterbox?
[marto]: Anyone care to check Nodes to consider, and help me correct a brainfart? Thanks
[marto]: My edit should have stated 'retitle'

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2017-07-23 12:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (347 votes). Check out past polls.