Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: when i try to execute another scripts if fails

by AnomalousMonk (Chancellor)
on Jun 17, 2014 at 21:33 UTC ( #1090213=note: print w/replies, xml ) Need Help??


in reply to when i try to execute another scripts if fails

exit $already_there; ### call email perl #################### unless ( -z "$Temp" ) { print "File has something in it\n"; exec "c://testscripts//email.pl" or die "problem with email.pl"; }

If the intention is that the  unless (cond) { ... } block following the exit statement be executed, it will not and cannot be: the script has exit-ed! Did you mean to write
    exit if $already_there;
(a conditional statement) perhaps?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1090213]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (13)
As of 2017-12-15 15:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (433 votes). Check out past polls.

    Notices?