karmas has asked for the wisdom of the Perl Monks concerning the following question:
but maybe a simple substr would be better way? Currently I'm too fascinated by regexps, so sometimes it's hard to think about something other :)($letter) = $string =~ /^(.)/;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: What's the best way to get first character of the string?
by busunsl (Vicar) on Nov 08, 2001 at 14:01 UTC | |
|
Re: What's the best way to get first character of the string?
by demerphq (Chancellor) on Nov 08, 2001 at 14:59 UTC | |
|
Re: What's the best way to get first character of the string?
by lestrrat (Deacon) on Nov 08, 2001 at 14:01 UTC | |
|
TMTOWTDI is your friend!
by dragonchild (Archbishop) on Nov 08, 2001 at 20:05 UTC | |
|
Re: What's the best way to get first character of the string?
by mandog (Curate) on Nov 08, 2001 at 20:40 UTC |