Sir (Ichi)
I am not an experienced perl programmer so I was not surprised by the fact that (at first glance) I could not understand your code.
In order to understand your writing I copy-pasted it and was planning to print the $_ so that I can understand what is happening but Not only me my computer is also not able to understand and I am getting the following error
[root@localhost Documents]# perl infernal.pl
Nested quantifiers in regex; marked by <-- HERE in m/\.??? <-- HERE $/ at infernal.pl line 8.
Please could you explain
the ??? should be tripe dots. been using ? too much on the shell.
while(<*.wmv>){
$o = $_;
s/\....$/.xml/;
print "rename $o ,$_\n";
}
(This post was edited by ichi on Aug 13, 2009, 1:58 AM)