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

Re^2: perl beginner question

by Anonymous Monk
on Jun 02, 2009 at 11:38 UTC ( [id://767562]=note: print w/replies, xml ) Need Help??


in reply to Re: perl beginner question
in thread perl beginner question

thanks vivek

Replies are listed 'Best First'.
Re^3: perl beginner question
by dpetrov (Acolyte) on Jun 02, 2009 at 13:15 UTC

    Let's say you have a package: test.pm

    package test; sub mysub { return 'babayaga'; } 1;

    Then in your .pl file

    #!/usr/bin/perl use strict; use test; print test::mysub();
    If you want to use directly mysub() read this one here: Exporter

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (2)
As of 2024-03-19 04:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found