
japhy
Enthusiast
Aug 31, 2000, 10:36 AM
Post #2 of 2
(224 views)
|
|
Re: Taking items out of an array
[In reply to]
|
Can't Post
|
|
You want the splice() function: <BLOCKQUOTE><font size="1" face="Arial,Helvetica,sans serif">code:</font><HR> @names = qw( Joe Jack Bob Bill Jason ); splice @names, 2, 2; # remove $names[2] and $names[3] </pre><HR></BLOCKQUOTE> For more examples, read the splice() documentation. perldoc -f splice ------------------ Jeff "japhy" Pinyan -- accomplished author, consultant, hacker, and teacher
|