Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^3: perl beginner question

by dpetrov (Acolyte)
on Jun 02, 2009 at 13:15 UTC ( [id://767585]=note: print w/replies, xml ) Need Help??


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

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://767585]
help
Chatterbox?
and the web crawler heard nothing...

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

    No recent polls found