Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: make a required script exit script

by swkronenfeld (Hermit)
on Feb 09, 2006 at 16:48 UTC ( #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? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2022-08-14 09:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?