[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]
Re: perlrun.pod lies :)
Gurusamy Sarathy writes:
> >That's not entirely true.  It stops when it reaches an argument BEGINNING
> >with '--':
> >
> >  % perl -s prog -foo -bar -this-works --this-stops processing
> 
> Try this.
>  		break;
> -	    if (argv[0][1] == '-') {
> +	    if (argv[0][1] == '-' && !argv[0][2]) {
>  		argc--,argv++;
Why not add 
    || isSPACE(argv[0][2])
?  This way it may continue to work as before on the #! line.
Ilya
- Follow-Ups from:
 - 
Gurusamy Sarathy <gsar@ActiveState.com>
 
- References to:
 - 
Gurusamy Sarathy <gsar@ActiveState.com>
 
[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]