<html><head></head><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px"><div id="yui_3_16_0_ym19_1_1503077579332_3282">How do we know wether this function 'found' or created whatever was being asked to 'find_or_create' ???</div><div id="yui_3_16_0_ym19_1_1503077579332_3312"><br></div><div id="yui_3_16_0_ym19_1_1503077579332_3313" dir="ltr">my $id = $schema<br id="yui_3_16_0_ym19_1_1503077579332_3328">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; -&gt;resultset('Node')<br id="yui_3_16_0_ym19_1_1503077579332_3329">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; -&gt;find_or_create<br id="yui_3_16_0_ym19_1_1503077579332_3330">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; (<br id="yui_3_16_0_ym19_1_1503077579332_3331">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; { nodeName =&gt; $node },<br id="yui_3_16_0_ym19_1_1503077579332_3332">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; { key =&gt; 'nodeID' }<br id="yui_3_16_0_ym19_1_1503077579332_3333">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; );<br id="yui_3_16_0_ym19_1_1503077579332_3334"></div><div dir="ltr">how do we know wether $id was already existing in table?<br></div></div></body></html>