[Adduser-devel] argh

Stephen Gran sgran at debian.org
Wed Apr 26 14:04:39 UTC 2006


This one time, at band camp, Marc Haber said:
> On Wed, Apr 26, 2006 at 02:44:07PM +0100, Stephen Gran wrote:
> > Changing it to
> > &usage, exit 1 unless ( GetOptions... 
> 
> Besides from this construct rating rather high on the obfuscated perl
> scale, its output seems acceptable to me.

OK, fair enough :)

It can be rewritten more clearly as:

unless ( GetOptions... 
        [ ... ]
                      ) {
    &usage;
    exit 1;
}

If that makes you more comfortable.
-- 
 -----------------------------------------------------------------
|   ,''`.                                            Stephen Gran |
|  : :' :                                        sgran at debian.org |
|  `. `'                        Debian user, admin, and developer |
|    `-                                     http://www.debian.org |
 -----------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/adduser-devel/attachments/20060426/9016d74e/attachment.pgp


More information about the Adduser-devel mailing list