Re: Image Modules

2011-08-25 Thread m...@smtp.fakessh.eu
Le vendredi 26 août 2011 01:33, Emeka a écrit : > Hello All, > > I want to re-size and edit images. Which module would you advise? > > Emeka perlmonks describe many example http://www.perlmonks.org/?node_id=53367 shrink example --  http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x092164A7  

Re: loop break condition

2011-08-25 Thread Rob Dixon
On 25/08/2011 20:36, Shlomi Fish wrote: If you want to use $_ so be it, but it can easily introduce subtle errors into your code, because $_ is so easy to modify and clobber. So I would recommend against these, and still think it's a good idea. Please substantiate this assertion. I believe you

Re: Image Modules

2011-08-25 Thread Shawn H Corey
On 11-08-25 07:33 PM, Emeka wrote: Hello All, I want to re-size and edit images. Which module would you advise? Emeka GD would do that. https://metacpan.org/module/GD -- Just my 0.0002 million dollars worth, Shawn Confusion is the first step of understanding. Programming is as muc

Image Modules

2011-08-25 Thread Emeka
Hello All, I want to re-size and edit images. Which module would you advise? Emeka -- *Satajanus Nig. Ltd *

Re: loop break condition

2011-08-25 Thread Shlomi Fish
Hi Randal, On Thu, 25 Aug 2011 11:41:34 -0700 mer...@stonehenge.com (Randal L. Schwartz) wrote: > > "Shlomi" == Shlomi Fish writes: > > Shlomi> Well, I believe I've always avoided using an implicit $_ as > Shlomi> preventative measure (out of thinking I know better) and so cannot > Shlomi>

Re: PCRE: Use backreference in pattern repetition bracket

2011-08-25 Thread C.DeRykus
On Aug 25, 7:01 am, jwkr...@shaw.ca ("John W. Krahn") wrote: > Honza Mach wrote: > > Hi everybody, > > Hello, > > > > > > > > > > > I was wondering, if it is possible to use backreferences in the pattern > > repetition bracket operator. > > > Consider the following string: > > > my $string = "5 abc

Re: loop break condition

2011-08-25 Thread Randal L. Schwartz
> "Shlomi" == Shlomi Fish writes: Shlomi> Well, I believe I've always avoided using an implicit $_ as preventative Shlomi> measure (out of thinking I know better) and so cannot present such a case Shlomi> first-hand. However, see: Shlomi> http://www.forum2.org/gaal/perl/Pitfall/slide001.htm

Re: loop break condition

2011-08-25 Thread Shlomi Fish
On Thu, 25 Aug 2011 10:08:55 -0700 mer...@stonehenge.com (Randal L. Schwartz) wrote: > > "Shlomi" == Shlomi Fish writes: > > Shlomi> I also tend to avoid using "$_" (except for map/grep/etc. where > Shlomi> it is required), because it can be clobbered and devastated too > Shlomi> easily, whi

Re: Hash of Hashes - Error

2011-08-25 Thread Mike McClain
> On Tue, Aug 23, 2011 at 10:23 AM, wrote: > I am working on the below code to traverse through a hash, but it throws an > error which states "Can't coerce array into hash at temp.pl line 6." > > Code: > === > sub hash_walk { >my

Re: PCRE: Use backreference in pattern repetition bracket

2011-08-25 Thread Randal L. Schwartz
> "Honza" == Honza Mach writes: Honza> Hi everybody, In the subject, you mention "PCRE". Are you actually using PCRE, and not Perl? If so, this mailing list isn't for you, because PCRE is misnamed: it isn't Perl, and it's not even Perl Compatible. This mailing list will likely give you Per

Re: loop break condition

2011-08-25 Thread Randal L. Schwartz
> "Shlomi" == Shlomi Fish writes: Shlomi> I also tend to avoid using "$_" (except for map/grep/etc. where Shlomi> it is required), because it can be clobbered and devastated too Shlomi> easily, which also makes depending on it error prone. Well, that's interesting. I've *never* accidentally

OT: Apache vulnerability

2011-08-25 Thread Ramprasad Prasad
Will the apache DOS vulnerability affect servers just running CGI scripts , no php , tomcat etc( usually those are the ones causing all security concerns ) http://www.networkworld.com/news/2011/082411-apache-warns-web-server-admins-250075.html Are there any mitigation scripts

Re: PCRE: Use backreference in pattern repetition bracket

2011-08-25 Thread John W. Krahn
Honza Mach wrote: Hi everybody, Hello, I was wondering, if it is possible to use backreferences in the pattern repetition bracket operator. Consider the following string: my $string = "5 abcdefghijklmn"; The number five at the beginning of the string means, that I want to extract first fiv

Re: PCRE: Use backreference in pattern repetition bracket

2011-08-25 Thread Honza Mach
Hi, On Thu, 2011-08-25 at 12:54 +0200, Paul Johnson wrote: > On Thu, Aug 25, 2011 at 12:02:37PM +0200, Honza Mach wrote: > > Hi, > > > > On Thu, 2011-08-25 at 11:35 +0200, Paul Johnson wrote: > > > > > > say "extracted: ", /^(\d+\s+.{$len})/ if ($len) = /^(\d+)/ > > > Sometimes two passes are

Re: PCRE: Use backreference in pattern repetition bracket

2011-08-25 Thread Paul Johnson
On Thu, Aug 25, 2011 at 12:02:37PM +0200, Honza Mach wrote: > Hi, > > On Thu, 2011-08-25 at 11:35 +0200, Paul Johnson wrote: > > > > say "extracted: ", /^(\d+\s+.{$len})/ if ($len) = /^(\d+)/ > > Sometimes two passes are are better than one. > > > > Thank you for your advice, however I wanted

Re: regex negative looking up a backtrace

2011-08-25 Thread timothy adigun
Hi Prasad, >>still does not work >>$_ = "zzabtable"; >>/(.)(?!.*\1)/ && print "$1\n"; >>Output is z The script above worked just has it was intended. The output should be 'z' and not 't' as you suppose. Your code will match the first unique string that is not repeated, after other letters. And in

Re: PCRE: Use backreference in pattern repetition bracket

2011-08-25 Thread Honza Mach
Hi, On Thu, 2011-08-25 at 11:35 +0200, Paul Johnson wrote: > > > On Thu, 25 Aug 2011 10:42:20 +0200 > > > Honza Mach wrote: > > > > > > > Hi everybody, > > > > > > > > I was wondering, if it is possible to use backreferences in the pattern > > > > repetition bracket operator. > > > > > > > > C

Re: PCRE: Use backreference in pattern repetition bracket

2011-08-25 Thread Paul Johnson
> > On Thu, 25 Aug 2011 10:42:20 +0200 > > Honza Mach wrote: > > > > > Hi everybody, > > > > > > I was wondering, if it is possible to use backreferences in the pattern > > > repetition bracket operator. > > > > > > Consider the following string: > > > > > > my $string = "5 abcdefghijklmn"; >

Re: PCRE: Use backreference in pattern repetition bracket

2011-08-25 Thread Honza Mach
Hi Schlomi, thank you so much for such a quick response. On Thu, 2011-08-25 at 11:56 +0300, Shlomi Fish wrote: > ׁHi Honza, > > On Thu, 25 Aug 2011 10:42:20 +0200 > Honza Mach wrote: > > > Hi everybody, > > > > I was wondering, if it is possible to use backreferences in the pattern > > repeti

Re: PCRE: Use backreference in pattern repetition bracket

2011-08-25 Thread Shlomi Fish
ׁHi Honza, On Thu, 25 Aug 2011 10:42:20 +0200 Honza Mach wrote: > Hi everybody, > > I was wondering, if it is possible to use backreferences in the pattern > repetition bracket operator. > > Consider the following string: > > my $string = "5 abcdefghijklmn"; > > The number five at the beginn

Re: loop break condition

2011-08-25 Thread Shlomi Fish
Hi Rob, On Wed, 24 Aug 2011 23:07:13 +0100 Rob Dixon wrote: > On 22/08/2011 10:29, Shlomi Fish wrote: > > Hi Alan, > > > > On Mon, 22 Aug 2011 14:43:48 +0530 > > Alan Haggai Alavi wrote: > > > >> Hello Shlomi, > >> > >>> It's a good idea to always use "last LABEL;" instead of "last;" (as well >

PCRE: Use backreference in pattern repetition bracket

2011-08-25 Thread Honza Mach
Hi everybody, I was wondering, if it is possible to use backreferences in the pattern repetition bracket operator. Consider the following string: my $string = "5 abcdefghijklmn"; The number five at the beginning of the string means, that I want to extract first five characters from the latter p

Re: CPAN on Windows Box

2011-08-25 Thread Emeka
I am thinking that this may be from my make On Thu, Aug 25, 2011 at 8:02 AM, Emeka wrote: > I added prefs folder inside .cpan > > It worked, that is I was able to download. However, I got some error > message toward the end . > > > > Finding dependencies for strGlue.c > Cannot find 'tclDecls.h'

Re: CPAN on Windows Box

2011-08-25 Thread Emeka
I added prefs folder inside .cpan It worked, that is I was able to download. However, I got some error message toward the end . Finding dependencies for strGlue.c Cannot find 'tclDecls.h' assume made Cannot find 'tclPlatDecls.h' assume made Finding dependencies for strcasecmp.c Finding dependen