Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Re: Re: How portable are common $! error codes?

by Necos (Friar)
on Apr 24, 2003 at 17:27 UTC ( [id://252960]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: How portable are common $! error codes?
in thread How portable are common $! error codes?

If you're testing with -f, then (and you mentioned it) shouldn't you just combine that with the -e test? Like:
if ( -e $file ) { #file exists if ( -f $file ) { #file is also plain do_your_thing(); } else { special_error_handler_for_non_plain_files(); } } else { #file doesn't exist special_error_handler_for_nonexistent_files(); }
I know, a bit simplistic, but just throwing the idea out there for ya. YMMV.

Theodore Charles III
Network Administrator
Los Angeles Senior High
email->secon_kun@hotmail.com
perl -e "map{print++$_}split//,Mdbnr;"

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2024-04-19 16:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found