in reply to matching single-quoted-like strings (q{}, q//)
why not use eval()? First extract the name of the variable, then eval the string, and get the value of the string form that variable (you will need to no strict 'refs';).my $kt = q{BEGIN super foo};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: matching single-quoted-like strings (q{}, q//)
by AltBlue (Chaplain) on Apr 03, 2003 at 22:53 UTC |