Help for this page
for ( glob "*.abc" ) { ($new = $_) =~ s/\.abc$/.edf/; rename $_, $new or warn "can't rename '$old' to '$new'"; }