How do I convert a Unix oneliner like this
Depends how "like" that it is:
$o = q[perl -wl -e 'print "This is text";'];; $o =~ tr['"]["'];; print $o;; perl -wl -e "print 'This is text';"
I can see many ways to make that fail, but it might be good enough.
Otherwise, you soon move into the realms of Only perl can parse Perl.
In reply to Re: Regexp for oneliner conversion
by BrowserUk
in thread Regexp for oneliner conversion
by cztmonk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |