Thread Regülarer Ausdrück zu einem hash array (19 answers)
Opened by Tom99 at 2008-10-04 15:42

pq
 2008-10-04 20:56
#115168 #115168
User since
2003-08-04
12209 Artikel
Admin1
[Homepage]
user image
Tom99+2008-10-04 18:46:19--
Noch eine Frage gibts in Perl kein true oder false?

doch, es ist nur viel einfacher. man braucht kein true oder false.
Code (perl): (dl )
1
2
3
4
5
6
7
8
my $x = 1;
if ($x) {} # true
$x = 0;
if ($x) {} # false
$x = "";
if ($x) {} # false
$x = <alles ausser 0 oder leerstring>;
if ($x) {} # true

lies mal Wiki:perlintro
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 Regülarer Ausdrück zu einem hash array