Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Newbie: need algorithm to evaluate no file exist

by murugu (Curate)
on Aug 18, 2010 at 15:16 UTC ( #855801=note: print w/ replies, xml ) Need Help??


in reply to Newbie: need algorithm to evaluate no file exist

Hi,

As kennethk pointed, use a flag inside the loop and check itoutside and send mail according to the flag value.

Is there any specific reason to create @files array instead of using $ftp->ls directly in loop? Is it for @files reuse in the other parts of the code?

Regards,
Murugesan Kandasamy
use perl for(;;);


Comment on Re: Newbie: need algorithm to evaluate no file exist

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2015-07-04 02:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (57 votes), past polls