in reply to Re: read-only error
in thread read-only error
This is ok:
This isn't:use strict; use warnings; my @list; $list[0] = 0; $list[2] = 2; @list = sort {$a <=> $b} @list;
use strict; use warnings; my @list; $list[0] = [0]; $list[2] = [2]; @list = sort {$$a[0] <=> $$b[0]} @list;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: read-only error
by ikegami (Patriarch) on Aug 24, 2006 at 19:52 UTC |