filesystems - How do I create a directory and parent directories in one Perl command? -


How do I create a subdirectory in Perl and, at the same time, make the original directories if they are not present? Like UNIX's MCD-P Command?

  file :: Use path qw (make_path); Make_path ("path / to / sub / directory");  

Excluded mkpath and favorite make_path are generated from the archive stored in Perl 5 portsarts thread.

In short, the Pearl 5.10 test logic parsing turned into a strange mechanism of the makepath () interface, so it was replaced with a simplified version which, as the last argument for setting options for the function Had taken a hash.


Comments

Popular posts from this blog

c# - PInvoke of NetUserAdd returns 24 -

c# - XMLDocument.Validate Error: System.InvalidOperationException : The XmlSchemaSet on the document is either null or has no schemas in it -