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
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,
>
>
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'
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
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
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
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
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
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 @