Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: Script/module formatting gotcha

by mjscott2702 (Pilgrim)
on Oct 06, 2010 at 13:52 UTC ( #863790=note: print w/ replies, xml ) Need Help??


in reply to Re: Script/module formatting gotcha
in thread Script/module formatting gotcha

It's not the construct of assigning an assignment to a variable that I am questioning here, I too use this all the time.

The source of my confusion were the hundreds of comment lines between the left and right-hand sides. IMHO, this is a way of making the code more unreadable - yes comments can do that! In your example (which, to be fair has only a single comment line, and is less likely to be confusing), I think it would be clearer to write:

$this->{key} = my $val = blarg(); # this is an important note about the previous +assignment


Comment on Re^2: Script/module formatting gotcha
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (17)
As of 2014-08-27 14:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (238 votes), past polls