TinkerTantrum has asked for the wisdom of the Perl Monks concerning the following question:
Hello Fellow Monks! First of all let me say that it is an honor to be accepted into the Monastary. As an Initiate Programmer I have chosen Perl as my 1st language to learn. I could probably figure out the answer to this question myself due to the superior documentation of Perl on Linux, but I would rather get some interaction going with my fellow Monks. Anyway, this is my code:
use warnings; $rocks = [1..23]; @rocks = qw/hail slate poop drop/; print $rocks;
Here's the output:
ARRAY(0x1434d80)
My question is:What is this doing? And why?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: A Simple Question From A Simple Man
by kcott (Archbishop) on Oct 10, 2012 at 23:19 UTC | |
by TinkerTantrum (Novice) on Oct 10, 2012 at 23:55 UTC | |
|
Re: A Simple Question From A Simple Man
by Anonymous Monk on Oct 10, 2012 at 23:13 UTC | |
|
Re: A Simple Question From A Simple Man
by Anonymous Monk on Oct 11, 2012 at 04:56 UTC | |
by TinkerTantrum (Novice) on Oct 14, 2012 at 02:32 UTC | |
by Athanasius (Cardinal) on Oct 14, 2012 at 03:37 UTC |