Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: aliasing arrays using typeglob under strict

by BrowserUk (Pope)
on Feb 08, 2013 at 01:40 UTC ( #1017745=note: print w/ replies, xml ) Need Help??


in reply to aliasing arrays using typeglob under strict

Like this?

sub fit_data { our @ydata; local *ydata = shift; print "array contains: ",join(",",@ydata)," \n"; print "last index is $#ydata \n"; };; fit_data( [ 1..10 ] );; array contains: 1,2,3,4,5,6,7,8,9,10 last index is 9

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In the absence of evidence, opinion is indistinguishable from prejudice.


Comment on Re: aliasing arrays using typeglob under strict
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2014-08-02 05:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who would be the most fun to work for?















    Results (54 votes), past polls