From: Bryan Harris <[EMAIL PROTECTED]> > I'd like to concatenate two variables-- > > $newVar = $old1 . $old2; > > -- where $old1 might be undefined. Is there any way to set a flag so > that this just results in $old2 instead of the compiler throwing an > error?
It's not an error, but a warning. You can temporarily turn this warning off. Either { local $^W = 0; $newVar = $old1 . $old2; } or { no warnings 'uninitialized'; $newVar = $old1 . $old2; } The second works only with Perl 5.6 or newer I belive. Jenda ===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz ===== When it comes to wine, women and song, wizards are allowed to get drunk and croon as much as they like. -- Terry Pratchett in Sourcery -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]