Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Mr. BlindNewB question regarding spacing

by GrandFather (Sage)
on Oct 02, 2012 at 20:21 UTC ( #996907=note: print w/ replies, xml ) Need Help??


in reply to Mr. BlindNewB question regarding spacing

Instead of adding what would generally be considered excess white space, try setting your editor to use a larger font.

Generally more important than white space is that you always use strictures (use strict; use warnings;) to tell you early about silly errors such as typos.

It's much harder to see and understand stuff that isn't there. Avoid using the default variable $_ where you can use a meaningfully named variable instead. Consider:

#!/usr/bin/perl use strict; use warnings; my @lines = `perldoc -u -f atan2;`; for my $line (@lines) { $line =~ s/\w<([^>]+)>/\U$1/g; print $line; }
True laziness is hard work


Comment on Re: Mr. BlindNewB question regarding spacing
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://996907]
help
Chatterbox?
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: (7)
As of 2015-07-07 04:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (87 votes), past polls