Problems? Is your data what you think it is? | |
PerlMonks |
Re^5: Data::Dumper outputby afoken (Chancellor) |
on May 08, 2021 at 16:00 UTC ( [id://11132278]=note: print w/replies, xml ) | Need Help?? |
To continue to use \n, use a list with print ... Just use say:
say outputs a trailing newline unless the arguments already contain a trailing newline.
I'm no Lisp guy, but using a few more brackets helps to avoid ambiguity and misunderstandings between humans and computers. If you call a function or method, add brackets around the argument list. That's what I do, with only very few exceptions - mostly stuff that is listed in perlfunc, but behaves more like a keyword or a C macro (__FILE__, __LINE__, __PACKAGE__, do, eval, package, use, require) than like a function. I would have written ...
... in code for perl 5.10 and newer (i.e. with use v5.10 in the file), or ...
... in code for older perls. Alexander
-- Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
In Section
Seekers of Perl Wisdom
|
|