print will print its arguments and then print the output record separator.
What's the output record separator? It's the variable $\ which is the empty string by default. It looks like something is setting your output record separator to a line break.
Things to check:
When you run perl at the command line, is that really running the usual Perl executable? Or is it triggering a shell alias; or a wrapper script?
Try running this command:
perl -MConfig -E'say for grep -e, qq[$Config{sitelib}/sitecustomize.pl]'If it prints out a filename, then take a peek inside that file. See if it's doing anything unusual.
update: replaced sitecustomize.pl checking command with a more aesthetically pleasing, but functionally identical one
In reply to Re: Bug for the 'print' function in perl v5.14?
by tobyink
in thread For the 'print' function in perl v5.14
by Diamondust
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |