Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Perltidy: Understanding output - or suppress certain messages

by hoppfrosch (Scribe)
on Nov 19, 2012 at 08:25 UTC ( #1004480=perlquestion: print w/ replies, xml ) Need Help??
hoppfrosch has asked for the wisdom of the Perl Monks concerning the following question:

Hi fellows,
using perltidy I got the fillowing output I cannot interpret/understand:
47:operator in print statement not recommended
Line 47 contains the following code:
44: use version; our $VERSION = qv('1.2.14'); 45: 46: use FindBin qw($Bin); 47: use lib $Bin. '/../..'; 48: 49: use Carp;
Now my questions:
  • What does the above perltidy warning/recommendation mean within this context?
  • What would be the correct way to write use lib $Bin. '/../..'; instead?
  • Is there a way to suppress certain UNWANTED recommendations/warnings/errors from perltidy to get a clean perltidy-errorlog?
Thanks in advance for your insights

Comment on Perltidy: Understanding output - or suppress certain messages
Select or Download Code
Replies are listed 'Best First'.
Re: Perltidy: Understanding output - or suppress certain messages
by frozenwithjoy (Curate) on Nov 19, 2012 at 08:42 UTC

    My guess is that it is complaining about the concatenation operator. What happens if you try the following?

    use lib "$Bin/../..";
      Yeah - you're right. Perltidy is not complaining if concatenation is replaced in the way you suggested ...

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1004480]
Approved by frozenwithjoy
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: (8)
As of 2015-11-27 13:35 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (729 votes), past polls