more useful options | |
PerlMonks |
Re: C to Java string conversion scriptby chipmunk (Parson) |
on Dec 02, 2001 at 02:22 UTC ( [id://128914]=note: print w/replies, xml ) | Need Help?? |
This does the same thing, but with map and join rather than foreach and .=
s/"(.+)"/'{' . join(',', map "(byte)'$_'", split m!!, $1) . '}'/e;
In Section
Seekers of Perl Wisdom
|
|