in reply to Re: compare csv files only to first fullstop character
in thread compare csv files only to first fullstop character

please see screen print when i run this script
C:\scripts>new2.pl Backslash found where operator expected at C:\scripts\new2.pl line 47, + near "(my $serverKey = $server) =~ s/\" (Might be a runaway multi-line // string starting on line 38) (Missing operator before \?) Global symbol "$serverKey" requires explicit package name at C:\script +s\new2.pl line 38. syntax error at C:\scripts\new2.pl line 47, near "(my $serverKey = $se +rver) =~ s /\" Global symbol "$serverKey" requires explicit package name at C:\script +s\new2.pl line 49. Global symbol "$serverKey" requires explicit package name at C:\script +s\new2.pl line 57. Global symbol "$serverKey" requires explicit package name at C:\script +s\new2.pl line 58. Global symbol "$serverKey" requires explicit package name at C:\script +s\new2.pl line 58. Execution of C:\scripts\new2.pl aborted due to compilation errors.

Replies are listed 'Best First'.
Re^3: compare csv files only to first fullstop character
by choroba (Cardinal) on May 08, 2014 at 21:34 UTC
    Your Perl is probably older than 5.10, so you can't use the defined-or operator. See perl5100delta for details.
    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
      i use perl 5.8.8 , any way round it?
Re^3: compare csv files only to first fullstop character
by poj (Abbot) on May 08, 2014 at 20:56 UTC
    Check line 38. If it is like this $_ ///= '-- missing --' for $status, $ticket, $resolution; then delete one of the /, there should only be 2.
    poj
      poj there are only 2 // on that line??
Re^3: compare csv files only to first fullstop character
by john.tm (Scribe) on May 09, 2014 at 02:29 UTC
    i replaced the new defined-or operator on line 38. with ||.