intertwingled wrote:

[EMAIL PROTECTED] wrote:

Is there a way to force a variable to walk through the alphabet the way it can numbers?

ie: for numbers: $k=0; $k=$k+1; would give you 1

for letters $k='a'; $k=$k+1; this won't give you 'b'; but is there any way of doing this that will?


------------------------------------------------------------------------

_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

[EMAIL PROTECTED]:~# perl -e "for('a'...'z') { print }"
[EMAIL PROTECTED]:~#


Actually, also:

[EMAIL PROTECTED]:~# perl -e "for('a'..'z') { print }"
[EMAIL PROTECTED]:~#

.. and ... are slightly different operators.

Tony


_______________________________________________ ActivePerl mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to