|
|
| We don't bite newbies here... much | |
| PerlMonks |
Re: Help with error msg "Useless use..."by dbwiz (Curate) |
| on Sep 15, 2003 at 12:05 UTC ( [id://291589]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
Your line 17 is assigning the result of join to a variable. That's OK, but then you are also listing another scalar (,"\n") hoping it will go into $pms as well. It won't, and Perl is warning you about that. If your purpose is to concatenate the two elements, then you should use the "." (dot) operator instead. Perhaps you saw this working:
And that's fine, because print expects a list of arguments. As for the diagnostics business, what merlyn meant is to include the -Mdiagnostics in you command line. That is, if your script is called "lory.pl" you can run it this way:
All the lines you see are the result of diagnostic, which is explaining verbosely what you previously got in a dry warning. HTH
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||