-e $attachfile and do{ $ENV{f}=$attachfile; system('(echo file is "$f"; ls -l "$f" ) 2>&1 >> EXTRA_DEBUG_LS_OUTPUT') };