Timothy Johnson <[EMAIL PROTECTED]> almost bottom posted:

: (quote from below):  "The file separator in perl is '/', not '\\'"
: 
: That's not necessarily true.

    Using '\\' as the file separator makes your script more
platform dependent than using '/'. AFAIK, '\\' will not work in a
unix or Mac environment where '/' will.

    To an advanced perl programmer you are correct, but to a
beginner who cannot even post a proper message to a technical
email list, it is poor advice. The only separator he needs to know
about right now is '/'. Any other separator will force him to
write OS specific software. That is generally a Bad Thing.


:  It depends on the module and the context.  Many modules will
: take the path in either format.  In this case Perl was
: interpreting their code correctly, because otherwise it would
: not have given the error indicated by the OP.

    The code the OP gave did not compile. It was not the same
code he was using to get the error he described. IMO, learning to
copy & paste his scripts to technical email lists is the real
important lesson the OP needs to learn. Much more important than
the question he asked.

    When he can post coherent, well thought out questions the
beginner will have more skills at hand to solve future programming
problems. I chose to deliberately ignore his intentioned question
and point out his syntactical errors in an effort to enforce why
proof-reading posts before hitting send is so important.


HTH,

Charles K. Clarkson
-- 
Mobile Homes Specialist
254 968-8328



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to