in reply to Meaning of 'use constant USAGEMSG = > ...'
Hi please can any one explain me what does the following code does , what is the use of USAGEMSG or USAGEHaving a 'Seekers of Perl Wisdom' IMHO is not an excuse for not trying to search for obvious info by oneself. In particular since you see use constant you should really check perldoc constant. Then you would find out that 'USAGEMSG' is a constant (a sub, really, you may have doneuse constant USAGEMSG => <<USAGE; Usage:ftp.pl [options] host:/path/to/directory
instead).sub USAGEMSG () { ... }
'USAGE' is "nothing but" a "tag", but this is basic perl syntax. Please check perldoc perlop and look for "here-document".
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Meaning of 'use constant USAGEMSG = > ...'
by Mutant (Priest) on Feb 08, 2005 at 17:03 UTC | |
by blazar (Canon) on Feb 08, 2005 at 17:47 UTC | |
|
Re^2: Meaning of 'use constant USAGEMSG = > ...'
by herveus (Prior) on Feb 08, 2005 at 17:34 UTC | |
by blazar (Canon) on Feb 08, 2005 at 17:52 UTC |