in reply to Re^3: Sorting an array of hashes
in thread Sorting an array of hashes
Modified as follows using "exists":perl arraydelete.pl Use of uninitialized value within @x in print at arraydelete.pl line 6 +. 1245
Run it to produce:#! perl use warnings; use strict; my @x = (1,2,3,4,5); delete $x[2]; for (0..4) { print $x[$_] if exists ($x[$_]) }
perl arraydelete.pl 1245
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Sorting an array of hashes
by stiller (Friar) on Mar 27, 2008 at 10:57 UTC |