in reply to perl 4/5 version issues

Very odd indeed. What shell are you using? Is it interpolating the $] before it gets to Perl? Something to try: does using single quotes make a difference: perl -e 'print $]' Also, does the shell you're using support whence perl so you can see if some "intermediate" script is getting in the way?

If you find out what it is, I'd be terribly curious to find out.

Replies are listed 'Best First'.
Re: perl 4/5 version issues
by cLive ;-) (Prior) on Jun 15, 2001 at 03:34 UTC
    Single quotes prints the same.

    whence doesn't work, whereis perl shows path to Perl4.

    Strange one, eh...

    cLive ;-)

      Have you tried typing in the full path to perl for your test? /usr/bin/perl4 -e "print $]"
      I think I'll have to hunt down to make sure Perl4 behaved in the way you expect it to.

      Update:
      Ah ha. This has part of the answer:
      Why am I getting long decimals?
      Now I just need to find out why 5...

        I think you're missing my point.

        If I type perl whatever, I expect the same binary to run. So why the peculiarity between perl -v or perl -e "print $]";.

        That's what I'm confused about...

        cLive ;-)