[quote=kabazza,12.01.2007, 12:35]if ($string ist leer){$string = $anderer_string;}
probleme hab ich bei "ist leer". wie ist da die richtige syntax?[/quote]
Nun, $string ist nicht wirklich leer und auf jeden Fall defined, wenn du über
<STDIN> einliest, deshalb würde sich
my $string = <STDIN>;
chomp($string);
$string = 'default' if $string eq '';
anbieten. Oder wie pq schon schrieb, mit
//=.\n\n
<!--EDIT|opi|1168943703-->
What is a good module? That's hard to say.
What is good code? That's also hard to say.
One man's Thing of Beauty is another's man's Evil Hack.