[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Arguments on "command line"



At 6:12 PM 9/9/96, Francois-Regis wrote:
>Hi folks,
>
>Is somebody know how I can give arguments on a "command line" UNIX like
>with my Perl.
>
>FR

You can't.  However, you can add switches on the first line, i.e.:

#!perl -d   #this would activate the perl debugger



#================================================================
perl -e 'srand();if(rand>.5){$i=0;foreach(@ARGV){@$i=split(//);$z
[$i]=0;foreach$l(@$i){$s[$i][$z[$i]]=$l;$z[$i]++;}$i++;}foreach$m
(@s){foreach$g(@{$m}){print$g}print" ";$m++}}else{print(join(" ",
@ARGV))}print"\n"' McClellan Clan Motto: Think On

Chris Nandor                                       pudge@pcix.com
PGP Key 0xB76E72AD                    http://pudge.petersons.com/