in reply to what about a system call to mv?
in thread Moving directories

Well passing user input to system can always be a bit dodgy. You'd better be running that script in taint mode.

--
<http://www.dave.org.uk>

European Perl Conference - Sept 22/24 2000
<http://www.yapc.org/Europe/>

Replies are listed 'Best First'.
RE: RE: what about a system call to mv?
by KM (Priest) on Jun 27, 2000 at 18:11 UTC
    Not just in taint mode, but properly untainting (see Untaint.pm, and perlsec), but also calling system in a safe way. Read perlsec (I wish it was named perlsex, since that is what I always seem to type) over to see how to safely make system() calls.

    Cheers,
    KM