Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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

by Corion (Pope)
on Sep 24, 2012 at 17:36 UTC ( #995424=note: print w/ replies, xml ) Need Help??


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

Are you certain that perl -e '...' is not an alias for something else? perlrun lists options that could have been used to make print output a newline every time.

I recommend checking for shell aliases (and understanding or killing them), and invoking Perl via ./perl or the appropriate path to each Perl version.


Comment on Re: Bug for the 'print' function in perl v5.14?
Select or Download Code
Re^2: Bug for the 'print' function in perl v5.14?
by Diamondust (Novice) on Sep 25, 2012 at 00:31 UTC

    You are right...

    While running perl directly prints out NL every time, going to perl5.14.2's parent directory and running ./perl behaves normally (no NL is printed.)

    For some reason there is a line aliasing perl to

    alias perl='perl -l'

    in my .bashrc file.

    I've deleted it, and everything works fine now.

    Thanks!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2015-07-05 15:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (67 votes), past polls