eval not work

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

My eval do not work. I do not know why?
eval {
     system "rename _new.xml .xml *.xml";
die 'Can not change new to current data' if $@;

when no xml file exists. It should come to exception situation and print
    out 'Can not change new to current data' and exit program. But it
print out the message 'No such file and directory' and go ahead to next


Re: eval not work

Quoted text here. Click to load it

You are jumping to conclusions. eval works perfectly.

You just failed to read the documentation for system

perldoc -f system


(reverse each component and remove .invalid for email address)

comp.lang.perl.misc guidelines on the WWW:

Site Timeline