Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Answer: How can I write and call subroutines in separate files?

by Anonymous Monk
on Feb 23, 2004 at 11:16 UTC ( #331076=note: print w/replies, xml ) Need Help??


in reply to Answer: How can I write and call subroutines in separate files?
in thread subroutines

Hi, dont forget the 1; at the end of the require "file"; where file is:
#!/usr/bin/perl sub one{ print "one"; } 1;
otherwise the compiler wont be happy;-)
  • Comment on Re: Answer: How can I write and call subroutines in separate files?
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://331076]
help
Chatterbox?
[Happy-the-monk]: Moin !

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2018-07-23 08:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (459 votes). Check out past polls.

    Notices?