Re: File::Sluprer (Re: Multi line file handling)

2015-10-20 Thread Lars Noodén
On 10/19/2015 07:40 PM, Kent Fredric wrote: > On 20 October 2015 at 03:55, Lars Noodén wrote: >> What is the main reason for the preference of File::Slurper over >> File::Slurp these days? > > > http://blogs.perl.org/users/leon_timmermans/2015/08/fileslurp-is-broken-and-wrong.html Thanks. That

Re: File::Sluprer (Re: Multi line file handling)

2015-10-19 Thread Kent Fredric
On 20 October 2015 at 03:55, Lars Noodén wrote: > What is the main reason for the preference of File::Slurper over > File::Slurp these days? http://blogs.perl.org/users/leon_timmermans/2015/08/fileslurp-is-broken-and-wrong.html -- Kent KENTNL - https://metacpan.org/author/KENTNL -- To unsubs

Re: Multi line file handling

2015-10-19 Thread Ian
On Mon, Oct 19, 2015 at 9:46 AM, Shlomi Fish wrote: > Hi Ian and Prashant and all, > > On Mon, 19 Oct 2015 09:28:15 -0500 > Ian wrote: > > > Take a look at File::Slurp. > > > > Just for the record, using File::Slurp is no longer recommended and one > should > be using https://metacpan.org/pod/Pa

Re: Multi line file handling

2015-10-19 Thread Brandon McCaig
On Mon, Oct 19, 2015 at 07:48:06PM +0530, Prashant Thorat wrote: > Hi All, Hello, > I have a file with multiple lines ,I want to assign all content to variable > & then want to work on it. > Like want to match pattern /window/ from it. > how can it is possible ? > for example - > > open ( F1 ,"f

File::Sluprer (Re: Multi line file handling)

2015-10-19 Thread Lars Noodén
On 10/19/2015 05:49 PM, Shlomi Fish wrote: > Just for the record, using File::Slurp is no longer recommended and one should > be using https://metacpan.org/pod/Path::Tiny or perhaps > https://metacpan.org/pod/File::Slurper instead. What is the main reason for the preference of File::Slurper over F

Re: Multi line file handling

2015-10-19 Thread Shawn H Corey
On Mon, 19 Oct 2015 19:48:06 +0530 Prashant Thorat wrote: > Hi All, > > I have a file with multiple lines ,I want to assign all content to > variable & then want to work on it. > Like want to match pattern /window/ from it. > how can it is possible ? > for example - > > open ( F1 ,"file.txt") |

Re: Multi line file handling

2015-10-19 Thread Shlomi Fish
Hi Ian and Prashant and all, On Mon, 19 Oct 2015 09:28:15 -0500 Ian wrote: > Take a look at File::Slurp. > Just for the record, using File::Slurp is no longer recommended and one should be using https://metacpan.org/pod/Path::Tiny or perhaps https://metacpan.org/pod/File::Slurper instead. Fin

Re: Multi line file handling

2015-10-19 Thread Ian
Take a look at File::Slurp. Regards On Mon, Oct 19, 2015 at 9:18 AM, Prashant Thorat wrote: > Hi All, > > I have a file with multiple lines ,I want to assign all content to > variable & then want to work on it. > Like want to match pattern /window/ from it. > how can it is possible ? > for exam