List Info

Thread: Re: shift/pop like function for a filehandle?




Re: shift/pop like function for a filehandle?
country flaguser name
United States
2008-02-29 14:18:29

> The simplest solution is just to read one record first and then
enter your
>; loop:
>
> open my($fh), "<", $filename or die "can't read $filename: $!";
> <$fh>;; # waste a record

perfect, didn't realize it could be done so easily. I'm a happier camper

Thanks!
Brian

__._,_.___
.

__,_._,___
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )