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

Re: Using only one subroutine from module file

by jesuashok (Curate)
on Jun 27, 2007 at 09:39 UTC ( #623568=note: print w/ replies, xml ) Need Help??


in reply to Using only one subroutine from module file

Warm welcome to isha,

# file Test.pm package Test; use strict; use warnings; our (@EXPORT_OK); use base qw(Exporter); @EXPORT_OK = qw(make_file); sub make_file { print qq{Hello from the make_file sub\n}; } sub delete_file { print qq{Hello from the delete_file sub\n}; } 1;
#main.pl #!/usr/bin/perl use Test qw(make_file); make_file();
Example to call only one method from a module.


Comment on Re: Using only one subroutine from module file
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (9)
As of 2014-09-18 18:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (120 votes), past polls