Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 exploiting the Monastery: (9)
As of 2016-02-08 19:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (283 votes), past polls