Loading ...
Sorry, an error occurred while loading the content.
 

[PBML] Re: shift/pop like function for a filehandle?

Expand Messages
  • Brian
    ... enter your ... perfect, didn t realize it could be done so easily. I m a happier camper Thanks! Brian
    Message 1 of 4 , Feb 29, 2008
      > 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
    Your message has been successfully submitted and would be delivered to recipients shortly.