diotalevi has asked for the wisdom of the Perl Monks concerning the following question:
Why is $$r not defined? I'm not sure what value I expected to find at the end of ${qr//} but I didn't think it'd be undef.
use strict; use warnings; my $r = qr/Delectable/; print defined $$r ? "Defined" : "Not defined";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Undefined regexp objects?
by ihb (Deacon) on Jan 16, 2003 at 00:12 UTC | |
|
Re: Undefined regexp objects?
by Paladin (Vicar) on Jan 15, 2003 at 23:39 UTC | |
by ihb (Deacon) on Jan 15, 2003 at 23:53 UTC | |
by diotalevi (Canon) on Jan 16, 2003 at 00:34 UTC | |
by ihb (Deacon) on Jan 20, 2003 at 13:21 UTC | |
by ysth (Canon) on Nov 19, 2003 at 23:31 UTC | |
by steves (Curate) on Jan 16, 2003 at 01:10 UTC | |
by ihb (Deacon) on Jan 16, 2003 at 01:26 UTC | |
| |
|
Re: Undefined regexp objects?
by pg (Canon) on Jan 16, 2003 at 05:35 UTC |