in reply to Re: Re: Return values from package methods
in thread Return values from package methods

I guess something must be flaky with my installation of Perl (5.8.0 Win) on this machine. When I do a Copy & Paste into the command line, it doesn't do anything. goes through without any errors. Turning on the w flag just blurts out

Useless use of a constant in void context at -e line 1.

So I create a script file and edited the line you have a bit and I get back an answer of 636.

So I guess I must have something misconfigured or forgot something or something :(

Oh well....

Oh yeah, I guess I better give you your hijacked thread back.

Thanks for you patience.

  • Comment on Re: Re: Re: Return values from package methods

Replies are listed 'Best First'.
Re: Re: Re: Re: Return values from package methods
by rob_au (Abbot) on Aug 22, 2003 at 03:29 UTC
    I guess something must be flaky with my installation of Perl (5.8.0 Win) on this machine. When I do a Copy & Paste into the command line, it doesn't do anything. goes through without any errors.

    This is a Windows command line quoting issue - Simply rearrange the single and double quotes as I have in the signature of this post and it should all work fine :-)

     

    perl -le "print+unpack'N',pack'B32','00000000000000000000001001111110'"