in reply to Type of arg 1 to shift must be array (not sort)
#!/usr/bin/perl -w use strict; my @array = qw( b d c a e g f ); print shift @{[ sort @array ]};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Type of arg 1 to shift must be array (not sort)
by wazzuteke (Hermit) on Dec 15, 2005 at 22:38 UTC | |
by merlyn (Sage) on Dec 16, 2005 at 01:00 UTC | |
|
Re^2: Type of arg 1 to shift must be array (not sort)
by davidrw (Prior) on Dec 15, 2005 at 21:30 UTC |