Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: make a required script exit script

by swkronenfeld (Hermit)
on Feb 09, 2006 at 16:48 UTC ( [id://529140]=note: print w/replies, xml ) Need Help??


in reply to make a required script exit script

Have you tried exiting in the required script?

test.pl
#!/usr/bin/perl -w use strict; require "test2.pl"; print "Shouldn't ever print me!\n";


test2.pl
#!/usr/bin/perl -w use strict; print "In required\n"; exit;


Test it
> ./test.pl In required >

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-04-24 07:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found