Re: Q to Japhy about difference sub

2001-11-23 Thread Jeff 'japhy' Pinyan
On Nov 22, 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: If you're using 5.005_03, then the postfix-for should work. Perhaps your PROGRAM is using an olde

Re: Q to Japhy about difference sub

2001-11-23 Thread Casey West
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'r

Re: Q to Japhy about difference sub

2001-11-22 Thread Pinar 2
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{$_}++ } } > > in

Re: Q to Japhy about difference sub

2001-11-21 Thread Jeff 'japhy' Pinyan
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:

Re: Q to Japhy about difference sub

2001-11-21 Thread Pinar 2
Wait, I think I need to change the stuff in the sub :) On Wed, 21 Nov 2001, Pinar 2 wrote: > > Hi Japhy, > > I was practicing your difference script but I got the following > error when I ran my script: > syntax error at ./shopdiff.pl line 5, near "++ for " > Execution of ./shopdiff.pl aborted

Q to Japhy about difference sub

2001-11-21 Thread Pinar 2
Hi Japhy, I was practicing your difference script but I got the following error when I ran my script: syntax error at ./shopdiff.pl line 5, near "++ for " Execution of ./shopdiff.pl aborted due to compilation errors. Here is my script: #!/usr/local/bin/perl -w sub difference { my %seen;