[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] Need some help here



Hi there folks

I need some help with a slight problem I have.  I need to convert
letters [A-Za-Z] into numbers.   What is the best way to do this without
having to type in an endless row of "if $letter = 'letter'?

Also,I would like to split a designated string into pairs of characters,
ie I want john to be put into an array as 'jo' and 'hn' and 2476 to put
put into the array as '24' and '76'...I know these are awful newbie
questions and all, but I'd appreciate any help!  Thanx.

Sveinbjorn Thordarson
Reykjavik, Iceland

PS:  Uhm...are there any built-in functions in perl to match only even numbers?

# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org