princepawn has asked for the wisdom of the Perl Monks concerning the following question:
I was wondering if anyone would care to reduce the number of lines required to do this.@pod = qw(HostCycle Instinet index); $extension{index} = 'pod'; map { $infile_extension = $extension{$_} ? $extension{$_} : '.pm'; system "pod2html $_.$infile_extension > $_.html"; } @pod;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Conditional, Ternary Operator - Specifying default and non-default values
by ncw (Friar) on Oct 02, 2000 at 22:42 UTC | |
|
(tye)Re: ((Conditional, Ternary Operator)) Specifying default and non-default
by tye (Sage) on Oct 02, 2000 at 22:49 UTC | |
|
Re: ((Conditional
by cwest (Friar) on Oct 02, 2000 at 23:43 UTC | |
|
Re: ((Conditional
by runrig (Abbot) on Oct 02, 2000 at 22:51 UTC |