natxo has asked for the wisdom of the Perl Monks concerning the following question:
I have this structure saved in this array @edits:
How do I dereference it? I have tried this:my @edits = @{ $timestamps{$page} } ; print Dumper @edits; $VAR1 = [ '2013-08-18T20:43:40Z' ]; $VAR2 = [ '2013-08-18T20:43:12Z' ]; $VAR3 = [ '2013-08-18T20:17:13Z' ]; $VAR4 = [ '2013-08-18T20:14:02Z' ]; $VAR5 = [ '2013-05-30T19:07:17Z' ];
TIAprint join('|'), @$edits, "\n"; Global symbol "$edits" requires explicit package name at ...
Update: I am overwhelmed by your support. Thanks to you all for your excellent and prompt answers.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: dereference array
by tobyink (Canon) on Dec 03, 2013 at 13:24 UTC | |
Re: dereference array
by GrandFather (Saint) on Dec 03, 2013 at 13:33 UTC | |
by natxo (Scribe) on Dec 03, 2013 at 13:50 UTC | |
by GrandFather (Saint) on Dec 03, 2013 at 13:55 UTC | |
by natxo (Scribe) on Dec 03, 2013 at 14:50 UTC | |
Re: dereference array
by hdb (Monsignor) on Dec 03, 2013 at 13:21 UTC | |
Re: dereference array
by hippo (Bishop) on Dec 03, 2013 at 13:19 UTC | |
by natxo (Scribe) on Dec 03, 2013 at 13:23 UTC | |
by hippo (Bishop) on Dec 03, 2013 at 13:33 UTC | |
by natxo (Scribe) on Dec 03, 2013 at 13:35 UTC | |
by Anonymous Monk on Dec 03, 2013 at 13:25 UTC |
Back to
Seekers of Perl Wisdom