Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Passing variables into a subroutine

by daxim (Chaplain)
on Sep 03, 2012 at 17:22 UTC ( #991491=note: print w/ replies, xml ) Need Help??


in reply to Passing variables into a subroutine

I guess you want

sub create_output { # no prototype my ($lines, $entry_no_new) = @_; # $lines is arrayref

See The purpose of prototypes in perl subroutines, The Problem with Prototypes, Why are Perl 5's function prototypes bad?, Prototype


Comment on Re: Passing variables into a subroutine
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2015-07-28 04:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (252 votes), past polls