Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Include subs from different perl file

by almut (Canon)
on Jun 06, 2007 at 09:34 UTC ( [id://619561]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub hello {
        print $hello;
    }
    
    1; # need to end with a true value
    
  2. or download this
    #!/usr/bin/perl
    
    ...
    
    $hello="hello123";
    hello();                  # prints "hello123"
    
  3. or download this
    sub hello {
        my $hello_msg = shift;
    ...
    hello($hello);
    # or just:
    # hello("hello123");
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (4)
As of 2024-04-25 08:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found