You will always be able to check the return status of a method call, something like:
my $obj = Some::Module->new or die "can't create object from Some::Module"; Regards. On Sat, Aug 13, 2011 at 7:58 AM, Jeffrey Joh <johjeff...@hotmail.com> wrote: > > I'd like to include code so that if I get the following error, the script > will just ignore it and keep running: > > > > "Can't call method "attr" on an undefined value at abcde.pl line 2" > > > > Does anyone know of such a code? > > > > Jeff > -- > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > For additional commands, e-mail: beginners-h...@perl.org > http://learn.perl.org/ > > > -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/