SPUG: minimal unmatching regex
Michael R. Wolf
MichaelRWolf at att.net
Fri Aug 21 23:12:37 PDT 2009
On Aug 19, 2009, at 12:38 AM, Ingy dot Net wrote:
>
>
> On Tue, Aug 18, 2009 at 10:33 PM, Steve Sandvik <ssandv at gmail.com>
> wrote:
> well, /$^/ seems like a plausible starting point. Or ending point.
> Or something. :-)
>
> Nope.
>
> $^ = "";
> $anything =~ /$^/;
I'm missing your point.
If you mean to indicate that interpolation happens inside m//, and
that $^ is an internal perlvar (with $FORMAT_TOP_NAME as a 'use
English' equivalent), then it is *not* an empty string. Here's the
one-liner to show that...
$ perl -le 'print $^'
STDOUT_TOP
$
But, perhaps I missed your intent.
--
Michael R. Wolf
All mammals learn by playing!
MichaelRWolf at att.net
More information about the spug-list
mailing list