Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Please confirm bug in SHLOMIF > Error-0.17 > Error

Thread Tools

Please confirm bug in SHLOMIF > Error-0.17 > Error

Derek Basch
Posts: n/a
Hello Everyone,

I was hoping someone could confirm a bug for me. I believe I have found
a bug in the Error module. The Synopsis section shows this example:

throw Error::Simple -text => "Oops!" if $other_condition;

However, this style of instantiating a Error::Simple object is broken.
The constructor for Error::Simple does not convert the parameters array
into a hash as expected:

265 sub new {
266 my $self = shift;
267 my $text = "" . shift;
268 my $value = shift;
269 my(@args) = ();

I believe it should be:

265 sub new {
266 my (%params) = @_;

and the parameters should be dereferenced as hash elements throughout.
Can anyone confirm?

Derek Basch

Reply With Quote
Derek Basch
Posts: n/a
Thanks for the help. I am sorry I didn't expand my examples enough. I
certainly wasn't hoping to find a bug but rather trying to figure out
something that had been "bugging" me for many hours. I will submit this
to CPAN.

Derek Basch

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Confirm a serious CSS bug in IE 7 (infinite loop) =?ISO-8859-1?Q?G=E9rard_Talbot?= HTML 0 03-11-2007 09:52 PM
Please confirm this possible Marvell Lan x64 bug =?Utf-8?B?U2FsYWh1ZGRpbg==?= Windows 64bit 5 08-10-2005 04:24 PM
Can anyone confirm this modulefinder bug? Roger Binns Python 3 06-24-2004 04:51 AM
found a bug i think, can anyone confirm Ian ASP .Net 0 05-04-2004 03:39 PM
Confirm a bug..... Bryan Martin ASP .Net 0 11-23-2003 03:08 PM