SirDonkeyPunch has asked for the wisdom of the Perl Monks concerning the following question:
So im a long time listener, first time caller....
now that the introductions are out of the way, im trying to work thru the ol' Perl 5 By Example, and im on the references chapter, getting a lil upset at the exercises..... my objective is to create multiple arrays, remove the first item from each array, and then display the number of characters removed.
im unable to even get my code to display the internal variable im dereferencing.
heres the code :
its not quite being too friendly. would any of you kind monks be able to thrust me over to where the solution likes to hang out with all those unicorns and leprachauns... Thanks
now that the introductions are out of the way, im trying to work thru the ol' Perl 5 By Example, and im on the references chapter, getting a lil upset at the exercises..... my objective is to create multiple arrays, remove the first item from each array, and then display the number of characters removed.
im unable to even get my code to display the internal variable im dereferencing.
heres the code :
#!/usr/bin/perl poo ( (1..4), ("goo", "doo", "moo"), (6..9) ); sub poo { my($first, $second, $third) = @_; my @array = \@{$second}; print("@array"); }
its not quite being too friendly. would any of you kind monks be able to thrust me over to where the solution likes to hang out with all those unicorns and leprachauns... Thanks
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Dereferenced Arrays
by pmonk4ever (Friar) on Aug 19, 2009 at 00:01 UTC | |
Re: Dereferenced Arrays
by bobf (Monsignor) on Aug 19, 2009 at 00:24 UTC | |
by SirDonkeyPunch (Novice) on Aug 19, 2009 at 00:30 UTC | |
Re: Dereferenced Arrays
by jbt (Chaplain) on Aug 19, 2009 at 00:15 UTC | |
Re: Dereferenced Arrays
by SirDonkeyPunch (Novice) on Aug 19, 2009 at 00:34 UTC | |
by ikegami (Patriarch) on Aug 19, 2009 at 00:36 UTC | |
by SirDonkeyPunch (Novice) on Aug 19, 2009 at 00:39 UTC | |
by ikegami (Patriarch) on Aug 19, 2009 at 00:56 UTC | |
by SirDonkeyPunch (Novice) on Aug 19, 2009 at 01:07 UTC | |
by Marshall (Canon) on Aug 19, 2009 at 02:01 UTC | |
by ikegami (Patriarch) on Aug 19, 2009 at 02:40 UTC | |
by Marshall (Canon) on Aug 19, 2009 at 04:03 UTC | |
by ig (Vicar) on Aug 19, 2009 at 07:13 UTC |
Back to
Seekers of Perl Wisdom