Sep 13, 2003, 12:23 PM
Veteran / Moderator (18441 posts)
Sep 13, 2003, 12:23 PM
Post #2 of 4
Views: 4205
Long winded way...
Code:
my @a = ("a","b","","","c","","");
my @b;
foreach (@a) {
if ($_) { push(@b,$_); }
}
@a = @b;
Not sure if thereis a better/faster way.. but thats probably how I would do it (gotta admit, I've never had to do it before).
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my
Amazon Wish List GLinks ULTRA Package | GLinks ULTRA Package PRO Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin |
Pre-Made Template Sets |
FREE GLinks Plugins!