It's unclear whether or not the array can contain a valid line which consists of the empty string or the character '0'. either of these possibilities would break your code. This problem can be fixed with:
--@{$mon_obj->{FILE_DATA}} = grep { defined $_ } @{$mon_obj->{FILE_DATA}};
"Perl makes the fun jobs fun
and the boring jobs bearable" - me
In reply to Re: Re: deleting array elements(efficiency/critique)
by davorg
in thread deleting array elements(efficiency/critique)
by blueAdept
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |