At 13.21 -0700 1999.08.04, Brian McNett wrote: >> #slect the input file and create an output file >> $file= &StandardFile::GetFile("what file do you want", "TEXT"); >> if ($file) { >> open (IN, $file)|| die "hmm, now that's odd......:- $!" ; >> } else { >> print".... and next time think before you start clicking on stuff!\n"; >> die "user killed script\n"; >> } >Also $^E is generally more informative than $!. <-- my sole useful >contribution They are for different things. For a dieing open(), you should use $!. For toolbox calls in the Mac modules, you should use $^E. -- Chris Nandor mailto:pudge@pobox.com http://pudge.net/ %PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10 1FF77F13 8180B6B6']) ===== Want to unsubscribe from this list? ===== Send mail with body "unsubscribe" to macperl-request@macperl.org