On Nov 21, Pinar 2 said:

>syntax error at ./shopdiff.pl line 5, near "++ for "
>Execution of ./shopdiff.pl aborted due to compilation errors.

You're using an older version of Perl.  Do:

  for (@_) { for (@$_) { $seen{$_}++ } }

instead.

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


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

Reply via email to