Thread Problem mit kleiner Perlaufgabe (7 answers)
Opened by Gast at 2005-07-09 03:59

pq
 2005-07-09 14:44
#56090 #56090
User since
2003-08-04
12208 Artikel
Admin1
[Homepage]
user image
[quote=Guest,09.07.2005, 01:59]
Code: (dl )
1
2
3
4
5
6
@letters = ("a", "b", "c", "d", 
"e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w",
"x", "y", "z");
@ziffern = ("1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "a", "b", "c", "d",
"e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w",
"x", "y", "z");
[/quote]
hui, das geht aber einfacher..
Code: (dl )
1
2
my @letters = ("a" .. "z");
my @ziffern = (1..9, 0, "a" .. "z");


und unbedingt lesen: Wiki:use strict;
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. -- Damian Conway in "Perl Best Practices"
lesen: Wiki:Wie frage ich & perlintro Wiki:brian's Leitfaden für jedes Perl-Problem

View full thread Problem mit kleiner Perlaufgabe