Jair Santos wrote: > > From: "John W. Krahn" <[EMAIL PROTECTED]> > > > Jair Santos wrote: > > > > > > From: "John W. Krahn" <[EMAIL PROTECTED]> > > > > > > > > $ perl -le' > > > > sub IsDir { return 1 } > > > > if ( IsDir() = = 1 ) { print "true" } > > > > else { print "false" } > > > > ' > > > > syntax error at -e line 3, near "= =" > > > > Execution of -e aborted due to compilation errors. > > > > > > Is it a DOS or UNIX box ? Mine is DOS and it works. > > > > It is a Perl syntax error so it shouldn't matter which OS you run it > > on. What version of Perl are you running? > > ActivePerl 5.8
Can anyone else on the list confirm or deny that this is a syntax error with Perl5.8 on Windows as I have neither to test it with. John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]