Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^3: Parsing output from a 'system' call into objects?

by huck (Prior)
on Feb 21, 2017 at 20:31 UTC ( [id://1182467]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Parsing output from a 'system' call into objects?
in thread Parsing output from a 'system' call into objects?

What no example this time to prove it? I thought you always wanted to see examples

I prefer to make it clear when a value comes from a variable rather than infer it does via interpolation. It also means it is clearer when i say

my $thing='dog'; print 'many '.$thing.'s'."\n";
rather than the more obscure
my $thing='dog'; print "many ${thing}s\n";
without getting caught by
my $thing='dog'; print "many $things\n";
Being clear is a good habit i started about 4 decades ago, after trying to read other peoples APL code. I mostly say my $n=scalar(@array); for clarity too.

You are right about calling it $array, it started because eval142 said he wanted an indexed array of objects.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2024-03-29 10:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found