Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: while(<>) { ... } considered harmful

by dws (Chancellor)
on Sep 07, 2002 at 23:37 UTC ( #195930=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      map { substr($_, 1, 1) = "foo" } qw(bar baz);
  2. or download this
      grep { substr($_, 1, 1) = "foo" } qw(bar baz);
  3. or download this
      foreach ( qw(foo) ) { $_ = 1 }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://195930]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (12)
As of 2014-10-01 16:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (29 votes), past polls