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