[Petal] [PATCH] Petal::Hash::Var error on undef + misc

Steve Purkis spurkis at mkdoc.com
Mon Jul 14 13:46:17 BST 2003


On Wednesday, July 9, 2003, at 03:50  pm, Jean-Michel Hiver wrote:

> Steve, thanks for this patch which seems less of a performance hit 
> while
> providing a useful option for coders who don't like to use undef 
> values.

Cheers for that.

I've found a small bug in the original patch that produces unexpected 
results - simply forgot a return statement.


> I think it's quite fine to have a global option since it's more likely
> to be a coding style applicable to the scope of an entire project.

I've had a think about this, and came to the conclusion that it would 
be more consistent if error_on_undef_var lived with the other 
configuration params - it can still be set as a global here, and now 
other packages can rely on it.  As such, I've moved it up to the Petal 
package, pod & all.

Patch for both of these against 0.96 attached.

hth,
-Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Petal-0.96-error-on-undef2.patch
Type: application/octet-stream
Size: 24304 bytes
Desc: not available
Url : http://www.email-lists.org/pipermail/petal/attachments/20030714/26d8f593/Petal-0.96-error-on-undef2.obj


More information about the Petal mailing list