Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Passing variables into a subroutine

by choroba (Bishop)
on Sep 03, 2012 at 17:19 UTC ( #991489=note: print w/replies, xml ) Need Help??


in reply to Passing variables into a subroutine

The problem is in the assignment. You can never make this work:
my (@array, ...) = ...
because the array takes all the values.

Update: Other problems may emerge after solving this one because of the usage of prototypes.

لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2017-10-22 23:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (275 votes). Check out past polls.

    Notices?