Sorry - some spelling mistakes there:
"Rob Dixon" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Pablo Fischer wrote: > > Thanks!!! > > > > That's what I was looking for! > > > > Yep, the file has a single record, It works, thanks! > > > > Now looking your code, the difference its the local $/. What does local $/ its > > doing? > > The scalar $/ is a perdefined variable which is the 'input record The scalar $/ is a predefined variable which is the 'input record > separator'. It is set to "\n" by default, so > > my $line = <FILEHANDLE>; > > will read everything from the filehandle up to the next newline. Setting > it to 'undef' hash the effect of disabling records altogether, so the it to 'undef' has the effect of disabling records altogether, so the > next read will fetch the entire file. I should also have mentioned that this is documented in perldoc perlvar Cheers, Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]