in reply to Re: "Getoptions'" argument syntax
in thread "Getoptions'" argument syntax

OK, thanks. But still, if $REFRESH is required to be given a value from command line, why bother setting it to 10? Why not make the command optional with a ":". This is merlyn's code so I'm assuming a guru like that would have some logic behind this but maybe I'm wrong.

$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot";
$nysus = $PM . $MCF;

Replies are listed 'Best First'.
Re: Re: Re: "Getoptions'" argument syntax
by Anonymous Monk on Jun 16, 2001 at 00:29 UTC
    '=' means that: *If* you give the option you *must*(mandatory) give an argument. To give the option although is *optional*. ':' means you can give the option with or without an argument.