Re: FAQ 6.4 I put a regular expression into $/ but it didn't work. What's wrong?
- From: brian d foy <brian.d.foy@xxxxxxxxx>
- Date: Thu, 27 Dec 2007 16:07:32 -0800
In article <fdid45-6j6.ln1@xxxxxxxxxxxxxxxxxxxxxxx>, Ben Morrow
<ben@xxxxxxxxxxxx> wrote:
Quoth PerlFAQ Server <brian@xxxxxxxxxxxxxx>:
6.4: I put a regular expression into $/ but it didn't work. What's wrong?
Up to Perl 5.8.0, $/ has to be a string. This may change in 5.10, but
don't get your hopes up. Until then, you can use these examples if you
s/8/10/; s/10/12/;
I think we've gone through the faq to change all the 5.8s to 5.10s and
so on. I haven't refreshed the copy the PerlFAQ server is using,
though.
I'll look at perlfaq6 to check this one again.
Thanks, :)
.
- References:
- FAQ 6.4 I put a regular expression into $/ but it didn't work. What's wrong?
- From: PerlFAQ Server
- Re: FAQ 6.4 I put a regular expression into $/ but it didn't work. What's wrong?
- From: Ben Morrow
- FAQ 6.4 I put a regular expression into $/ but it didn't work. What's wrong?
- Prev by Date: Re: FAQ 5.16 Is there a leak/bug in glob()?
- Next by Date: Re: Regular Expression for XML Parsing
- Previous by thread: Re: FAQ 6.4 I put a regular expression into $/ but it didn't work. What's wrong?
- Next by thread: s/A/B/ and s/B/C/ but don't want A -> C (was: FAQ 6.4 I put a regular expression into $/ but it didn't work. What's wrong?)
- Index(es):
Relevant Pages
|