in reply to Handling uninitialized values

You may disable warnings locally:

{ no warnings qw( uninitialized ); my $path = "${dir}${sub_dir}${file}"; } print "$path\n";

Just my € 0.02
--bwana147

Replies are listed 'Best First'.
Re: Re: Handling uninitialized values
by THRAK (Monk) on May 23, 2001 at 16:17 UTC
    I like this approach, but I guess a basic $sub_dir = '' is the quickest/cleanest solution here. Again, this is another example that would be very useful for a more complex piece of code.

    -THRAK
    www.polarlava.com