Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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 surveying the Monastery: (4)
As of 2018-09-22 10:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Eventually, "covfefe" will come to mean:













    Results (190 votes). Check out past polls.

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