Hi windjammer, the docs from File::Path say:

mkpath( $dir ) mkpath( $dir, $verbose, $mode ) mkpath( [$dir1, $dir2,...], $verbose, $mode ) mkpath( $dir1, $dir2,..., \%opt ) The mkpath() function provide the legacy interface of make_ +path() with a different interpretation of the arguments passed. T +he behaviour and return value of the function is otherwise ide +ntical to make_path().

So it rather seems that the only problem that could be solved by changing:

use File::Path qw/ make_path /;

to

use File::Path qw/ mkpath /;

is that your code called make_path() with deprecated argument-passing syntax, and you upgraded from an older version of File::Path to a newer one in which the make_path() syntax has changed and mkpath() offered as a legacy alternative.

So I am guessing that when you upgraded your PHP version, you may have also upgraded your Perl libraries ... did you use a shared host's one-button upgrade tool or something similar? If so, did it say that it was going to upgrade your Perl, too?

Just a theory, but I found the fact that you fixed your problem by only changing the File::Path method used, to be quite interesting.

The way forward always starts with a minimal test.

In reply to Re^4: use File::Path qw(make_path); fails with php 5.6.11 by 1nickt
in thread use File::Path qw(make_path); fails with php 5.6.11 by windjammer

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.