Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Parse::RandGen::Regexpby paulski (Beadle) |
on Aug 06, 2005 at 15:38 UTC ( [id://481499]=perlquestion: print w/replies, xml ) | Need Help?? |
paulski has asked for the wisdom of the Perl Monks concerning the following question:
I found a better module on CPAN that does exactly what I need Parse::RandGen::Regexp.pm.
The problem I'm having now is how to get a regexp into this function. I wrote a stub progam to test. This throws the following error. Now I need the string in regexp format to pass to the function. I could just put the string in qr//s but in my real program I need to read the regexps from a list so they will come in scalar format. i.e. How do I convert: to I'm not sure how to do this conversion. Thanks, Paul Janitored by Arunbear - replaced pre tags with code tags, to prevent distortion of site layout and allow code extraction.
Back to
Seekers of Perl Wisdom
|
|