Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: ls piped tpo perl -pe runs indefintely

by zwon (Abbot)
on May 01, 2012 at 13:47 UTC ( [id://968256]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    ls | perl -nE'chomp; say $_ if -d $_'
    
  2. or download this
    perl -E'for (<*>) {say $_ if -d $_}'
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (8)
As of 2024-04-24 10:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found