[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]

perlrun.pod lies :)



perlrun (for 5.005_02) says that switch processing, when using the is
switch to Perl, stops upon reaching the argument --.

That's not entirely true.  It stops when it reaches an argument BEGINNING
with '--':

  % perl -s prog -foo -bar -this-works --this-stops processing

Now, that isn't documented as working so.  Should it be, or should Perl's
command-line argument reading be changed?  I'd think it would just be
changing the documentation, so as not to fsck up other people's programs.

-- 

  MIDN 4/C PINYAN, USNR, NROTCURPI     http://www.pobox.com/~japhy/
  jeff pinyan: japhy@pobox.com     perl stuff: japhy+perl@pobox.com
  "The Art of Perl"               http://www.pobox.com/~japhy/book/      
  CPAN ID: PINYAN  http://www.perl.com/CPAN/authors/id/P/PI/PINYAN/
  PerlMonth - An Online Perl Magazine     http://www.perlmonth.com/


[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]