cei has asked for the wisdom of the Perl Monks concerning the following question:
I use
to make my forecast one string. I'd like to strip that = off though. I could chomp it but the way my loop is written, my string actually ends with ' =foreach $key (keys %$forecast) { $fcast .= "$key: $forecast->{$key}<P>\n"; }
', so that isn't ideal.
Being a good little monk in training, I thought I'd try transliteration. I know how to change case by saying $email =~ tr/A-Z/a-z/; but how can I transliterate an equal sign into either a space (or delete it entirely)? I tried $fcast =~ tr/=//; and $fcast =~ tr/\=//; with no luck. I'm guessing a 'd' should be in there... maybe $fcast =~ tr/\=//d; but I couldn't seem to get a good result.
Any suggestions, oh wise ones?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Transliteration
by ZZamboni (Curate) on May 03, 2000 at 06:02 UTC | |
by BBQ (Curate) on May 03, 2000 at 06:20 UTC | |
by chromatic (Archbishop) on May 03, 2000 at 06:56 UTC | |
by perlmonkey (Hermit) on May 03, 2000 at 06:47 UTC | |
by BBQ (Curate) on May 03, 2000 at 06:27 UTC | |
|
Re: Transliteration
by perlmonkey (Hermit) on May 03, 2000 at 06:15 UTC | |
|
RE: Transliteration
by The Alien (Sexton) on May 03, 2000 at 07:40 UTC | |
|
Re: Transliteration
by btrott (Parson) on May 03, 2000 at 06:16 UTC | |
by cei (Monk) on May 03, 2000 at 10:43 UTC | |
|
RE: Transliteration
by t0mas (Priest) on May 03, 2000 at 14:09 UTC | |
|
RE: Transliteration
by Anonymous Monk on May 03, 2000 at 07:22 UTC |