[Pdx-pm] mkdir -p ?
A. Pagaltzis
pagaltzis at gmx.de
Fri Aug 24 11:28:26 PDT 2007
* Roderick A. Anderson <raanders at acm.org> [2007-08-24 19:20]:
> qx{ /bin/mkdir -p path/that/was/needed }
That sets up the whole STDOUT-capture machinery and then stuffs
the (usually empty) output in a temporary scalar…
… just to throw it all away.
More direct:
system qw( /bin/mkdir -p path/that/was/needed );
More importantly, `system LIST` has no issues with quoting, which
`qx` is susceptible to.
Regards,
--
Aristotle Pagaltzis // <http://plasmasturm.org/>
More information about the Pdx-pm-list
mailing list