[Ilugc] Perl ftp et al

  • From: andyetitmoves@xxxxxxxxx (Ramkumar R)
  • Date: Tue Feb 8 22:17:09 2005

if ! ftp -> get( $file )
        print "error"
ftp->close()

ftp->get($file) or print "error";
ftp->close();

I guess this is more 'perl'y and serves the purpose of keeping the
main action in focus, and the error printing in the sidelines.

it moves on...


Asokan Pichai
---------------------
If you are a fresher interested in effective career options
take a look at http://www.mafoiacademy.com

_______________________________________________
To unsubscribe, email ilugc-request@xxxxxxxxxxxxx with
"unsubscribe <password> <address>"
in the subject or body of the message.
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc



-- 
An expert is a person who has made all the mistakes
     that can be made in a very narrow field.
                                                    - Niels Bohr

Other related posts: