Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: No output to screen or output file

by chromatic (Archbishop)
on Jul 24, 2012 at 19:04 UTC ( #983504=note: print w/ replies, xml ) Need Help??


in reply to Re^2: No output to screen or output file
in thread No output to screen or output file

Here's the quick explanation. What does this piece of code mean?

my $result = something;

Is something a function call? Is it a string literal?

You have to make your intent clear to Perl and to human readers. Make it unambiguously a function call with:

my $result = something();

... or a string with:

my $result = 'something';

Where it's not obvious what you mean, make it obvious. That's what strict was complaining about.


Improve your skills with Modern Perl: the free book.


Comment on Re^3: No output to screen or output file
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2014-12-27 10:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (177 votes), past polls