Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://991609]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (9)
As of 2017-02-21 14:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (313 votes). Check out past polls.