in reply to Character++
Perl once again makes easy things easy. Simply use the automagical increment operator just as you would for a numerical counter. i.e.:
-pete
"Pain heals. Chicks dig scars. Glory lasts forever."
You can also do things like 'aa'..'zz'.my $ctr='a'; print $ctr++ . "\n" foreach (1..26);
-pete
"Pain heals. Chicks dig scars. Glory lasts forever."
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Character++
by ignatz (Vicar) on Sep 07, 2002 at 23:03 UTC | |
by clintp (Curate) on Sep 07, 2002 at 23:48 UTC | |
by ignatz (Vicar) on Sep 08, 2002 at 00:03 UTC | |
by belg4mit (Prior) on Sep 07, 2002 at 23:14 UTC |
In Section
Seekers of Perl Wisdom