G
Guest
Hi,
Can someone explain to me what this line of perl is doing.
/(\S*)\.C$/;
it is used in this function
@list = `ls *.C`;
foreach (@list) {
chop;
/(\S*)\.C$/;
rename("$1.C", "$1.cc") || die "Can't rename $1 !\n";
Thank you.
EM
Can someone explain to me what this line of perl is doing.
/(\S*)\.C$/;
it is used in this function
@list = `ls *.C`;
foreach (@list) {
chop;
/(\S*)\.C$/;
rename("$1.C", "$1.cc") || die "Can't rename $1 !\n";
Thank you.
EM