Original content (with tags cleaned up; no other changes):

Hi all,

I have a question:

When I try to use a coed line like

print "  $somenumber means that, $output has info.\n";

I get different screen outputs in Windows and Linux (tried different shells).

In windows it looks like it's supposed to be, which is:

3 means that, text.txt has info.

But under Linux it looks like this:

has info.hat, text.txt

So it looks like it goes back to the start of the line and overwrites the first part of the string after a variable is supposed to be printed. Why is that?

---------------------------------

ww observes that the output shown does not support the supposition of the OP (immediately above)... BASED on the info supplied.

OP: This is why we urge that you post sufficient code to reproduce the problem; at least a snippet of sample data; error messages (verbatim) if any; and (the only one you gave us) how the output fails to satisfy your expectations/desires. Please see:

And please do not delete content you've posted. Use <strike>...</strike> if you must delete something, and mark updates with notice thereof....like this:

Update: Added matter below the dashes; then reupdated to fix typos and markup.


In reply to Re^2: Win32/Linux portability by ww
in thread Win32/Linux portability by thelycaeum

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.