On Nov 22, 2001 at 06:00 -0500, Pinar 2 took the soap box and proclaimed: : On Thu, 22 Nov 2001, Jeff 'japhy' Pinyan wrote: : : > 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. : > : Thanks that worked. It didn't give me differences though, it gave me the : common list items. Perhaps the unique to sub will give the differences but : I can't get that one working either. : : I am using: : This is perl, version 5.005_03 built for sun4-solaris
Perl 5.6.1 is now the latest stable version of Perl. Pick up your copy today at a CPAN near you! (start here: ftp://cpan.org/) : is this old? I thought this was the latest available. : : thanks Japhy! : Pinar : : > -- : > 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] : Casey West -- The goal of Computer Science is to build something that will last at least until we've finished building it. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]