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,In reply to Re: Re: Re: Re: Re: Re: Re: Re: opening a file in a subroutine
by abhishes
in thread opening a file in a subroutine
by abhishes
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |