[Israel.pm] setting $!

Yosef Meller mellerf at netvision.net.il
Mon Jul 19 23:54:41 PDT 2004

Shlomo Yona wrote:
 > On Sun, 18 Jul 2004, Yosef Meller wrote:
 >> > 	my $s = foo() or die "foo: $!";
 >>perlvar says you can assign a numerical errno value to it. But whyu not
 >>use Error.pm or something similar? Or use the common method of setting
 >>$PKG::errstr and returning undef? Just curious.
 > Can you please give examples? I am not familiar with these
 > common methods.

See 'perldoc DBI' - it's a great example of this method. I can't
remmember what other famopus modules I saw that do that, but DBI is more
than enough.

   "No, I do not contain myself,"
   were the final words from the set of self-excluding sets. :-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
Url : http://perl.org.il/pipermail/perl/attachments/20040720/bc86b6c0/attachment.pgp 

More information about the Perl mailing list