Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Changing an array from a sub

by corenth (Monk)
on Feb 13, 2018 at 17:17 UTC ( #1209074=note: print w/replies, xml ) Need Help??


in reply to Changing an array from a sub

First, I just want to state for the record that this is an awesome question. Did the "homework" then presented the findings. I think folk here appreciate that kind of thoughtfulness and interest in learning. Second, my favorite tool for learning new ways to do things in Perl is Data::Dumper.
use Data::Dumper; my @array = #something or other . . . print Dumper @array; print Dumper \@array; #for a different form of output (array reference +) print Dumper $alsoanarrayreference; print Dumper $PrettyMuchAnything #because the output can be enlighteni +ng
$state{tired}?sleep(40):eat($food);

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2018-06-22 21:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (124 votes). Check out past polls.

    Notices?