>>>>> "John" == John Porter <jdporter@min.net> writes: John> sub first_existing_dir { John> my $d=shift or die; Fails if $_[0] eq "0"; John> -d $d ? $d : first_existing_dir(@_) John> } John> my $dir = first_existing_dir( 'dir1', 'dir2', $default ); -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training! ==== Want to unsubscribe from Fun With Perl? Well, if you insist... ==== Send email to <fwp-request@technofile.org> with message _body_ ==== unsubscribe