rjuuser
Programmer
- Dec 2, 2008
- 5
Hello,
I'm working off some sample code...
I'm usign Windows XP and in the command shell
does not do anything. Any ideas why this is not working?
I'm working off some sample code...
Code:
#!/bin/perl
use strict;
use warnings;
# rename - Larry's filename fixer
my $op = shift or die "Usage: rename expr [files]\n";
chomp(@ARGV = <STDIN>) unless @ARGV;
for (@ARGV) {
my $was = $_;
eval $op;
die $@ if $@;
rename($was,$_) unless $was eq $_;
}
I'm usign Windows XP and in the command shell
Code:
>rename.pl "s/\.PRC/.txt/" *.PRC