in reply to matching single-quoted-like strings (q{}, q//)

If all your data is of the form
my $kt = q{BEGIN super foo};
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';).

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
    sorry, it's not all of that form. that is just a sample.
    + please remember that solution above it's working ok, i'm just looking for some more efficient approaches for it... yours looks very slow and 'painful' ;-)
    --
    AltBlue.