On Jun 25, bob ackerman said:

>> perl -lane'$a{$F[0]}++or$a=qw/box robo rain/[$b++%3];print"$F[0] $a"' 
>> yourfile.txt

>i assume things like '$a' ,'$b', and '$F' come from those switches, so 
>only question is...

@F comes from the -a switch used in conjunction with -n.  $a, %a, and $b
are just used.

>where are those command line switches documented?
>i would have thought 'perldoc perl' ... but, i didn't see it there, nor 
>apparently in any other doc title it mentioned

Then you missed:

  perlrun               Perl execution and options

-- 
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