Re: perl pattern match option 's' (coerce . to include \n)

2012-03-08 Thread will trillich
Greg -- When you're looking for something in particular, it's easy to just look for that specific thing. As you say, Perl has different definitions of what "\n" actually translates to depending on platform and context. So rather than worry about "\n" just have Perl look for what you're actually lo

RE: perl pattern match option 's' (coerce . to include \n)

2012-03-08 Thread Brian Raven
From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl-win32-users-boun...@listserv.activestate.com] On Behalf Of Greg Aiken Sent: 08 March 2012 15:36 To: perl-win32-users@listserv.activestate.com Subject: Fwd: perl pattern match option 's' (coerce . to include \n) > hello all, > >

Re: pattern match 'or' operator |

2012-03-08 Thread will trillich
Greg -- The pipe | operator isn't single characters only: $string =~ /this|that|the other/; But the character set is: $string =~ /[abc]/; # matches any a, b or c $string =~ /[tw]hat/; # matches 'that' or 'what' What you're looking for is something like this: $string =~ /\\L(ength)?\b/; That'

RE: pattern match 'or' operator |

2012-03-08 Thread Brian Raven
From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl-win32-users-boun...@listserv.activestate.com] On Behalf Of Greg Aiken Sent: 08 March 2012 15:32 To: perl-win32-users@listserv.activestate.com Subject: pattern match 'or' operator | > in pdf files evidently there are two differe

RE: Quick memory-recovery question--a point of information

2012-03-08 Thread Rothenmaier, Deane C.
Suspicion confirmed. Thanks, Brian! (All you other folks out there typing away can stop, now... Thanks to you, too.) Deane Rothenmaier Programmer/Analyst - IT-StdCfg Walgreens Corp. 2 Overlook Point #N51022D MS 6515 Lincolnshire, IL 60069 224-542-5150 There were no survivors in the sixties, only

Fwd: perl pattern match option 's' (coerce . to include \n)

2012-03-08 Thread Greg Aiken
hello all, i read how one may include 's' at end of a pattern match to essentially redefine '.' to include the 'newline character'. today i found a code fragment whereby someone presents how they extract flate encoded streams from pdf files using a regex whereby he is using the 's' option. the p

pattern match 'or' operator |

2012-03-08 Thread Greg Aiken
in pdf files evidently there are two different ways one may specify the 'length' operator sometimes one sees; \Length while at other times, the letter L is sufficient; \L i am wanting to do a pattern match for a line of data in a pdf file where i am looking to match EITHER \L or \Length is the

RE: Quick memory-recovery question--a point of information

2012-03-08 Thread Brian Raven
From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl-win32-users-boun...@listserv.activestate.com] On Behalf Of Rothenmaier, Deane C. Sent: 08 March 2012 15:00 To: perl-win32-users@listserv.ActiveState.com Subject: Quick memory-recovery question--a point of information > Hi, guru

Quick memory-recovery question--a point of information

2012-03-08 Thread Rothenmaier, Deane C.
Hi, gurus. This should be an easy one, and it is a minor one... I have an array which is declared and used inside a lexical scope, viz.: { my @chunk = split( /\n/, $data_line); # $data_line is a chunk of "lines", separated by newlines, in one scalar string. ... # Do stuff with members of @