idiotek has asked for the wisdom of the Perl Monks concerning the following question:
This on the other hand, works quite well and it seems to be the same thing with one line condensed#!/usr/bin/env perl use Cwd; our $cwd = getcwd(); @arr = ('cars', 'trucks'); @$arr[0] = (4,3,2,1); print @trucks;
Wondering if somebody could point me in the right direction or slap some sense into my head Thanks in advance#!/usr/bin/env perl use Cwd; our $cwd = getcwd(); @arr = ('cars', 'trucks'); $str = $arr[0]; @$str = (4,3,2,1); print @cars;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Working with an Array of Array Names
by ikegami (Patriarch) on Oct 07, 2007 at 23:23 UTC | |
Re: Working with an Array of Array Names
by snopal (Pilgrim) on Oct 07, 2007 at 23:28 UTC | |
Re: Working with an Array of Array Names
by bruceb3 (Pilgrim) on Oct 07, 2007 at 23:38 UTC | |
by idiotek (Initiate) on Oct 07, 2007 at 23:59 UTC | |
by FunkyMonk (Chancellor) on Oct 08, 2007 at 21:00 UTC | |
Re: Working with an Array of Array Names
by cosmicperl (Chaplain) on Oct 08, 2007 at 00:08 UTC |