This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: perl script dies with The instruction at
Harold Fuchs <harold <at> wolfeden.demon.co.uk> writes:
> Yitzchak Scott-Thoennes wrote:
> > How are you starting your script? Can you put: print "$^O: $]\n"
> > or something at the beginning and verify for sure which perl you are
> > using?
> At a command prompt (DOS/CMD or cygwin) do "perl -version" (no quotes). Not
> "-v"; spell it out in full. That will tell you, for each shell, which
> version of perl *perl* thinks is running. Then, if you have two different
> ones, remove the one you don't want.
perl -v is identical in meaning to perl -version, and has been for a long long
time.
And that will tell you about the perl that gets invoked when you type
perl foo.pl
at a shell prompt, but won't tell you anything about what version of perl
a particular script ends up using.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/