tos has asked for the wisdom of the Perl Monks concerning the following question:
to avoid the message
i changed the code-line 190 as followsUse of uninitialized value in concatenation (.) or string at d:/Perl/site/lib/lz.pm line 190.
the code is clear and works properly but i don't like it because it strikes me as rather bulky. Any suggestions for a more elegant way ? Can i perhaps avoid the do-Block ?.#my $outPath = $obj->{outpath}{absolut} . "-" . $obj->{sap}{jfExtNum}; my $outPath = $obj->{outpath}{absolut} . do { defined $obj->{sap}{jfExtNum} && "-" . $obj->{sap}{jfExtNum} };
thanks in advance
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: concatenating partially uninitialized values
by TomDLux (Vicar) on Jun 18, 2003 at 14:23 UTC | |
|
Re: concatenating partially uninitialized values
by sgifford (Prior) on Jun 18, 2003 at 18:18 UTC | |
by paulbort (Hermit) on Jun 18, 2003 at 18:33 UTC | |
|
Re: concatenating partially uninitialized values
by hardburn (Abbot) on Jun 18, 2003 at 14:27 UTC | |
|
Re: concatenating partially uninitialized values
by tommyw (Hermit) on Jun 18, 2003 at 14:45 UTC | |
|
Re: concatenating partially uninitialized values
by Arguile (Hermit) on Jun 18, 2003 at 18:05 UTC | |
|
Re: concatenating partially uninitialized values
by zby (Vicar) on Jun 18, 2003 at 14:30 UTC |