Thread Paramter Uebergabe (4 answers)
Opened by stephanb at 2007-11-16 18:54

ptk
 2007-11-16 21:44
#102494 #102494
User since
2003-11-28
3645 Artikel
ModeratorIn
[default_avatar]
Code: (dl )
if (($daily && $weekly) || ($daily && $monthly) || ($weekly && $monthly)) { usage() }
sollte funktionieren. Oder du verwendest einen Hash:
Code: (dl )
1
2
GetOptions("daily" => \$p{daily}, "weekly" => \$p{weekly}, "monthly" => \$p{monthly}, ...);
if (1 != grep $_, values %p) { usage() }

(ungetestet)

View full thread Paramter Uebergabe