Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: What does this print for you?

by kikuchiyo (Monk)
on Dec 24, 2009 at 23:30 UTC ( #814308=note: print w/ replies, xml ) Need Help??


in reply to Re: What does this print for you?
in thread What does this print for you?

I can see where the reversal comes from, if the PPC indeed runs in an opposite* endian mode from the Intel.

However, I understand even less where the difference mentioned in the OP comes from.
On my 32 bit Vista virtual machine it prints "Kerry Cthistmas!", but windows users in this thread reported that their windows perl prints the correct message.

Perhaps the perl compile-time flags give a clue into this mistery?
The 64 bit Ubuntu 9.10, perl 5.10.0 version:
MULTIPLICITY PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP USE_64_BIT_ALL USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API

The 32 bit Vista perl 5.10.0 (Camelbox build) version:
MULTIPLICITY PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS PERL_MALLOC_WRAP PL_OP_SLAB_ALLOC USE_ITHREADS USE_LARGE_FILES USE_PERLIO

* I always found this endian business a horrible mess - especially that there are certain combinations of CPUs, OSes and compilers where mixed endianness occurs.


Comment on Re^2: What does this print for you?
Re^3: What does this print for you?
by JadeNB (Chaplain) on Dec 24, 2009 at 23:55 UTC

    The I-guess relevant portion of the output of perl -V is

    hint=recommended, useposix=true, d_sigaction=define usethreads=undef use5005threads=undef useithreads=undef usemultipl +icity=undef useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef usemymalloc=n, bincompat5005=undef
    on the 64-bit machine. I'll edit this comment from my 32-bit machine in a few minutes.

    UPDATE: Here's the same passage from my 32-bit machine:

    hint=recommended, useposix=true, d_sigaction=define usethreads=undef use5005threads=undef useithreads=undef usemultipl +icity=undef useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef usemymalloc=n, bincompat5005=undef
    but maybe it's this bit that's more interesting:
    Compile-time options: PERL_MALLOC_WRAP USE_FAST_STDIO USE_LARGE_FILE +S USE_PERLIO

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://814308]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2014-12-25 15:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (160 votes), past polls