Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
etc.@array[0]=30; @array[1]=31; @array[2]=32;
Instead the array value is explicitly set to the string "30..39,50..59".@array=($ips); @array=("$ips");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Declare array with range operator
by BrowserUk (Patriarch) on Jul 12, 2011 at 19:06 UTC | |
by mariognarly (Initiate) on Jul 12, 2011 at 19:22 UTC | |
|
Re: Declare array with range operator
by Anonymous Monk on Jul 12, 2011 at 19:12 UTC | |
|
Re: Declare array with range operator
by zek152 (Pilgrim) on Jul 12, 2011 at 19:09 UTC |