Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Recognizing File Name Patterns in an Angle Operator in a While Loop Condition

by Perlbotics (Canon)
on May 21, 2012 at 18:14 UTC ( #971677=note: print w/ replies, xml ) Need Help??


in reply to Recognizing File Name Patterns in an Angle Operator in a While Loop Condition

Use an explicit glob:

while ( glob "/export/home/usps_edi/*pl" ) { -f $_ && print "ok\n";}'

  • Comment on Re: Recognizing File Name Patterns in an Angle Operator in a While Loop Condition
  • Download Code

Replies are listed 'Best First'.
Re^2: Recognizing File Name Patterns in an Angle Operator in a While Loop Condition
by johnarky (Initiate) on May 21, 2012 at 18:59 UTC

    Works like a charm! Thanks very much!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2016-06-26 07:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (328 votes). Check out past polls.