Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Re: println

by tlhf (Scribe)
on Jun 07, 2002 at 18:37 UTC ( [id://172608]=note: print w/replies, xml ) Need Help??


in reply to Re: println
in thread println

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: Re: Re: println
by Anonymous Monk on Jun 07, 2002 at 18:47 UTC
    Firstly, I don't see how my implementation is broken in anyway

    use strict; use warnings; sub println { print((@_ ? join($,, @_) : $_))."\n"; } println "hello world"; println "goodbye world"; # output: Use of uninitialized value in join or string at foo line 4. Use of uninitialized value in join or string at foo line 4. hello worldgoodbye world

    Secondly, your implementation is broken

    my bad.

    sub println { $\ = "\n"; @_ = ($_) unless @_; print @_; }
    A reply falls below the community's threshold of quality. You may see it by logging in.
Re: Re: Re: println
by Anonymous Monk on Jun 07, 2002 at 19:22 UTC
    Oh how clever of you to revise history and update your root node to correct your incorrect posted code without mentioning the update, and you continue to call me "stupid and anoying" in the CB. For the record, the original sub posted by tlhf is here. Too bad he has little interest in honor or honesty. At least I admitted my error of neglecting to print $_ by default.

    And now you call me "bitchy" in your root node and only admit to updating it to comply with strict and warnings, still failing to admit that your originally posted code was just plain broken. Talk about your second rate programmers. Please go find some third rate programmers to hang out with.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2024-04-19 13:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found