C
Colin B.
Hey all;
I'm not a programmer, and never have been. I can grind out a decent shell
script, and beat my head against perl until things work, but I'm seldom
happy with the inelegance of the solution. Does anyone have any good style
guides for perl?
And more specifically, I've got the following general case that keeps coming
up routinely.
foreach (`some_unix_command_that_puts_out_multiple_lines`) {
chomp;
split;
(do_stuff_on_the_separate_fields);
}
Anything to fix up there?
Thanks,
Colin
I'm not a programmer, and never have been. I can grind out a decent shell
script, and beat my head against perl until things work, but I'm seldom
happy with the inelegance of the solution. Does anyone have any good style
guides for perl?
And more specifically, I've got the following general case that keeps coming
up routinely.
foreach (`some_unix_command_that_puts_out_multiple_lines`) {
chomp;
split;
(do_stuff_on_the_separate_fields);
}
Anything to fix up there?
Thanks,
Colin