snafu has asked for the wisdom of the Perl Monks concerning the following question:
Now once I get that down, I can throw that string into a loop comparing character by character...$_ against the characters I need to convert to. The question is that how do I set the $/ or $, to recognize only a character? My guess is that I can regex the operator,
e.g. $/ =~ /\w/;.
Is this the right way to do it? Is there a better way?
TIA
----------
- Jim
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: character conversion in a loop...
by John M. Dlugosz (Monsignor) on Aug 05, 2001 at 22:44 UTC | |
by blakem (Monsignor) on Aug 06, 2001 at 00:03 UTC | |
by John M. Dlugosz (Monsignor) on Aug 06, 2001 at 01:02 UTC | |
by blakem (Monsignor) on Aug 06, 2001 at 02:30 UTC | |
by John M. Dlugosz (Monsignor) on Aug 06, 2001 at 04:18 UTC | |
by snafu (Chaplain) on Aug 05, 2001 at 22:47 UTC | |
by John M. Dlugosz (Monsignor) on Aug 06, 2001 at 01:06 UTC | |
|
Re: character conversion in a loop...
by bwana147 (Pilgrim) on Aug 06, 2001 at 02:31 UTC |