in reply to Re: Re: println
in thread println
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 @_; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
| A reply falls below the community's threshold of quality. You may see it by logging in. |