On Oct 25, Caroline Allen said:

>I would really like to be using "getopt," and I'm failing. I can't

Others have posted getopt-related code, so I'll skip this.

>I can't help wondering: does the Perl community have the same distaste
>for non-positional arguments as the Lisp community seems to have?

You mean things like:

  foo(
    this => 10,
    that => 20,
    mine => 30,
  );

  sub foo {
    my %args = @_;
    print $args{this} + $args{tat} * $args{mine};
  }

Something like that?  That's cool.  Hashes rock.  You can even preface the
args with '-'.

  $obj->textfield( -bgcolor => 'gray', -size => 12, ... );

I love it.  I don't use it enough....

>Working on a Friday night, waiting for the hellish traffic to subside,

Sorry, I was out at parties this evening. ;)  The college life is good.

-- 
Jeff "japhy" Pinyan      [EMAIL PROTECTED]      http://www.pobox.com/~japhy/
RPI Acacia brother #734   http://www.perlmonks.org/   http://www.cpan.org/
** Look for "Regular Expressions in Perl" published by Manning, in 2002 **
<stu> what does y/// stand for?  <tenderpuss> why, yansliterate of course.
[  I'm looking for programming work.  If you like my work, let me know.  ]


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to