delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/12/24/20:20:08

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Yitzchak Scott-Thoennes <sthoenna AT efn DOT org>
Subject: Re: perl script dies with The instruction at
Date: Mon, 25 Dec 2006 01:18:51 +0000 (UTC)
Lines: 20
Message-ID: <loom.20061225T021540-854@post.gmane.org>
References: <1166709020 DOT 458a911c4c444 AT easymail-old DOT hol DOT gr> <loom DOT 20061224T230125-71 AT post DOT gmane DOT org> <emn2vj$ojb$1 AT sea DOT gmane DOT org>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019