Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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 cooling their heels in the Monastery: (8)
As of 2024-04-22 15:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found