in reply to Re: A question about method return values and error checking
in thread A question about method return values and error checking
In order for the output to make sense, you would actually want a placeholder in the list for the name. In the general case, invoking $os->name in a list context doesn't really make much sense unless you really have an explicit list of values.printf <<EOF, $os->name( long => 1 ), $os->version; Operating System: %s Version : %s EOF
#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: A question about method return values and error checking
by dsheroh (Monsignor) on Nov 05, 2015 at 07:41 UTC | |
by kennethk (Abbot) on Nov 05, 2015 at 15:13 UTC | |
by tye (Sage) on Nov 05, 2015 at 16:03 UTC | |
by kennethk (Abbot) on Nov 05, 2015 at 21:10 UTC | |
by Anonymous Monk on Nov 06, 2015 at 11:15 UTC | |
by dsheroh (Monsignor) on Nov 06, 2015 at 11:03 UTC | |
by Anonymous Monk on Nov 05, 2015 at 09:57 UTC |