[Israel.pm] Getopt::Long

Oron Peled oron at actcom.co.il
Wed Mar 24 03:41:50 PST 2004

On Wednesday 24 March 2004 11:17, Gaal Yahas wrote:
> Then again, the Getopt::Long documentation claim the module "adheres" to
> POSIX, and floows GNU extensions, so "based on" *is* appropriate.

Note that the POSIX part is the backward compatibility with normal getopt
(which provides short options). The long options are GNU extensions.

Examples for standard behaviour (both POSIX and GNU):
 * a '-f -l' is equivalent to '-fl' or '-lf'
 * a '-f arg' is equivalent to '-farg'
 * a '--' mark the end of options (e.g: to remove a file named '-f'
   we can use 'rm -- -f')

Oron Peled                             Voice/Fax: +972-4-8228492
oron at actcom.co.il                  http://www.actcom.co.il/~oron

There are only 10 types of people in the world-
Those who understand binary, and those who do not.

More information about the Perl mailing list