Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Passing variables into a subroutine

by evaluator (Monk)
on Sep 04, 2012 at 11:53 UTC ( #991609=note: print w/ replies, xml ) Need Help??


in reply to Passing variables into a subroutine

Try this (untested):

my $entry_no_new = pop @_; my @array_of_lines = @_;
or
my @array_of_lines = @_; my $entry_no_new = pop @array_of_lines;


Comment on Re: Passing variables into a subroutine
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (8)
As of 2014-12-20 15:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (96 votes), past polls