Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: when i try to execute another scripts if fails

by 2teez (Priest)
on Jun 17, 2014 at 21:40 UTC ( #1090214=note: print w/ replies, xml ) Need Help??


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

But it will not work in this script, i get no warnings.

Let me ask: Will this code below display the second print?

#!/usr/bin/perl -l use warnings; use strict; my $value = 0; print 'home'; exit $value; ## Note here please print 'another home';
If not! Why? That would be the answer :)

If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me


Comment on Re: when i try to execute another scripts if fails
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (8)
As of 2015-07-04 15:23 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 (60 votes), past polls