I'm using in my program in my program the function dircopy from File::Copy::Recursive. This worked fine so fast, but recently (and, no, I am not aware that I have changed something in the call to this function), I get error message like

Attempt to free unreferenced scalar: SV 0x3f7b6d8, Perl interpreter: 0 +x15d4884 at e:/Tools/Perl587/lib/File/Copy.pm line 91.
when calling it. Note that the error is triggered in File::Copy, which is a standard module. Looking at the source of my version of Copy.pm, I see that the offending line in File/Copy.pm is the line containing the if expression
if (!$from_a_handle && !$to_a_handle && -d $to && ! -d $from) { $to = _catname($from, $to); }
which looks pretty innocent to me. I googled for this error message, and though I found other people also observing this error in Copy.pm, I didn't find any solution to this. Any ideas what I could do here?

-- 
Ronald Fischer <ynnor@mm.st>

In reply to Attempt to free unreferenced scalar in Copy.pm by rovf

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.