Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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

by dws (Chancellor)
on Sep 07, 2002 at 23:37 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://195930]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (2)
As of 2024-04-24 23:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found