in reply to Re: Re: Re: Re: Re: Re: Re: opening a file in a subroutine
in thread opening a file in a subroutine
local $/; open my $fh, "xml.log"; my $line = <$fh>; close ($fh);
Now I have the whole file in $line and I extract all the data which I want from regular expressions. My code is working as expected and is very very fast.
regards,
|
|---|