
daniel_lsl
Deleted
Apr 4, 2000, 4:51 PM
Post #1 of 3
(1143 views)
|
GetOpt doesn't get option!!
|
Can't Post
|
|
Hi is there anyone out ther who can help me with this problem. I've initialised all the option values. GetOptions ('verify=i' => \$link_verify, 'st|sort=s' => \$sort, 'fl|file=s' => \$file, 'sz|size=i' => \$min_file_size, 'mx|maxhit=i' => \$max_hit, 'd1|mindate=s' => \$min_date, 'd2|maxdate=s' => \$max_date); if ($sort eq size) { &sort_size; } elsif ($sort eq date) { &sort_date; } elsif ($sort eq frequency) { &sort_frequency; } else { &sort_domain; } I'm not sure why but it seems that it will only recognise if $sort is size or domain. When I use date or frequency as the options, it just doesn't go into the respective subroutines. Thanks for reading and helping in advance. Regards, Daniel
|