gives@foo = ("1zz", "zzz", "zz1", "z1z", "zz9"); foreach my $foo (@foo) { print "$foo autoincraments to "; $foo++; print "$foo\n"; }
Now, the first is easy, and the second is cool.... but the rest? Bizzare!1zz autoincraments to 2 zzz autoincraments to aaaa zz1 autoincraments to zz2 z1z autoincraments to 1 zz9 autoincraments to aaa0
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Amusement in Auto-Increments
by JavaFan (Canon) on Jul 22, 2009 at 11:09 UTC | |
by cog (Parson) on Jul 22, 2009 at 20:52 UTC | |
|
Re: Amusement in Auto-Increments
by moritz (Cardinal) on Jul 22, 2009 at 10:49 UTC | |
|
Re: Amusement in Auto-Increments
by wol (Hermit) on Jul 28, 2009 at 11:36 UTC |