Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2018-11-16 00:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My code is most likely broken because:
















    Results (192 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!