nysus has asked for the wisdom of the Perl Monks concerning the following question:
When I step through the program with debugger, I try:my $middle = AltRegex->new(',(.*),');
...after $middle has been blessed and it tells me that it's a scalar reference that is undefined. And when I try to dereference $middle in my script to look at it, I get an error. Still, everything works fine, just as if $middle contained the RE given in the constructor's argument. Obviously, there is some magic going on with blessed REs beyond my comprehension. But can someone please tell me if and how it's possible to reveal the data of the $middle object?x $middle
$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop";
$nysus = $PM . $MCF;
Click here if you love Perl Monks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to view contents of a blessed Regular Expression?
by ariels (Curate) on Jul 16, 2001 at 19:08 UTC | |
by nysus (Parson) on Jul 16, 2001 at 19:17 UTC | |
by tye (Sage) on Jul 16, 2001 at 19:42 UTC | |
by bikeNomad (Priest) on Jul 16, 2001 at 19:48 UTC | |
by nysus (Parson) on Jul 16, 2001 at 19:51 UTC | |
|