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

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

by Perlbotics (Chancellor)
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?
[ww]: or a lot more than (22*2) for /me
[ww]: er -- senior cognitive deficiency: ((22+(22*2))
[ww]: (but pls don't s/senior/senile/ ... not yet
[karlgoethebier]: A bit more audience now: The Impact of Information Sources on Code Security Very interesting IMHO...
[karlgoethebier]: ..it's about copy & paste ;-)
[ww]: Wonder what IEEE would have thought w/survey based on PM/perl
[ww]: s/thought/found/
[erix]: that title is a broken* sentence, no? But maybe that's deliberate
[karlgoethebier]: ww:My first thought, to be honest...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (10)
As of 2017-09-25 14:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (280 votes). Check out past polls.

    Notices?