perl6

2015-10-19 Thread Wah Peng
Hello members, Do you know if perl6 the first version will get released this Xmas day? Thanks. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: virus detection - empty DOC or XLS with a macro

2015-10-19 Thread Wah Peng
Hi, I think you'd better setup a antivirus/antispam gateway for the incoming emails.ClamAV and Spamassassin are what you may want to check. regards. On 2015/10/19 星期一 18:35, Gary Stainburn wrote: Is there any way within Perl to examine DOC and XLS files to 1) see if the document is empty, i

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

Multi line file handling

2015-10-19 Thread Prashant Thorat
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") || die "$!"; $a=; if (/window/i){print "it is present\n"; }

virus detection - empty DOC or XLS with a macro

2015-10-19 Thread Gary Stainburn
Is there any way within Perl to examine DOC and XLS files to 1) see if the document is empty, i.e. no text and no cell contents 2) has Macros embedded We're getting lots of virus emails claiming to be invoices, receipts, etc. with documents that match the above criteria which actually contain a