Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Bug for the 'print' function in perl v5.14?

by tobyink (Abbot)
on Sep 24, 2012 at 19:21 UTC ( #995430=note: print w/replies, xml ) Need Help??


in reply to For the 'print' function in perl v5.14

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

perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'

Replies are listed 'Best First'.
Re^2: Bug for the 'print' function in perl v5.14?
by Diamondust (Novice) on Sep 25, 2012 at 00:37 UTC
    perl -MConfig -E'$_="$Config{sitelib}/sitecustomize.pl"; -e()?say:()'

    This command prints nothing for me, but thank you all the same!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://995430]
help
Chatterbox?
[Corion]: Heh - I just realized, $work management just declared "no raises for anybody this year", and I'm not even angry about that. Even though that implicitly means "raises for the people with an automatic 5% raise in their contract", which the newly-merged ...
[Corion]: ... coworkers have. But I guess I've gone more mellow since I get to relax more, and such stuff doesn't make me as angry as it used to.
[Corion]: $boss will still get to listen to my interpretation :-D
[Eily]: hey, I'm just behind Larry in SioB \o/

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2018-01-22 11:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (233 votes). Check out past polls.

    Notices?