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

Cow1337killr's scratchpad

by Cow1337killr (Monk)
on Nov 25, 2013 at 17:14 UTC ( #1064254=scratchpad: print w/replies, xml ) Need Help??

#!/usr/bin/perl # ref-ref-anonymous-array.pl perl ref-ref-anonymous-array.pl Pr +int what is in a reference to a reference to an anonymous array. use strict; use warnings; my $aaa = [1, 2, 3]; use Data::Dumper; print Dumper($aaa); my $bbb = \$aaa; use Data::Dumper; print Dumper($bbb); my $ccc = \$bbb; use Data::Dumper; print Dumper($ccc); foreach my $entry (@$$$ccc) { # Print what is in the anonymous array. print $entry, "\n"; } foreach my $entry (@$aaa) { # Print what is in the anonymous array. print $entry, "\n"; } __END__
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (1)
As of 2021-12-04 14:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    R or B?



    Results (30 votes). Check out past polls.

    Notices?