Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: One-liners: Conditionals in Loops

by BrowserUk (Patriarch)
on Nov 04, 2003 at 21:43 UTC ( [id://304547]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    perl  -le"@a = <*.pl>; print for grep{ /\d{6}\./ } @a"
    
  2. or download this
    perl  -le" @a = <*.pl>; /\d{6}\./ and print for @a"
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-04-23 22:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found