Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: how to deal with incorrect command line argument

by Anonymous Monk
on Oct 30, 2013 at 23:08 UTC ( [id://1060470]=note: print w/replies, xml ) Need Help??


in reply to how to deal with incorrect command line argument

maybe something sticks

#!/usr/bin/perl -- use strict; use warnings; use Path::Tiny qw/ path /; Main( @ARGV ); exit( 1 ); sub Main { while( @_ ){ my( $oldname, $newname ) = splice @_, 0, 2; eval { path( $oldname )->move( $newname ); 1; } or warn $@; } }
Re: Multiple File Rename

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1060470]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (2)
As of 2024-04-26 04:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found