<?xml version="1.0" encoding="windows-1252"?>
<node id="515683" title="Re: perl deferring die to calling method" created="2005-12-09 20:56:24" updated="2005-12-09 15:56:24">
<type id="11">
note</type>
<author id="491819">
ioannis</author>
<data>
<field name="doctext">
You could  also use caller(). In the example bellow, I have renamed
the package name from B.pm to Bb.pm -- so we don't load from the
official B namespace.


&lt;code&gt;
package Bb;

sub foo { 
        die "your data is screwed at @{[ caller ]}" ; 
}

&lt;/code&gt;
</field>
<field name="root_node">
515670</field>
<field name="parent_node">
515670</field>
</data>
</node>
