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

Re: How to load the subs without running the script

by snoopy (Deacon)
on Aug 03, 2010 at 22:49 UTC ( #852765=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
    print "but I don't want to see this\n";
    
    exit;  # don't want to exit either
    
  2. or download this
    #!/usr/bin/perl
    use warnings;
    ...
    
    warn "trying mysub";
    mysub();
    
  3. or download this
    perl do.pl
    trying mysub at do.pl line 13.
    I want to see this
    Compilation finished at Wed Aug  4 10:08:26
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2014-09-02 06:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (20 votes), past polls