http://www.perlmonks.org?node_id=901263


in reply to Re: Changing filenames
in thread Changing filenames

Read perlintro then you can write program, like
#!/usr/bin/perl --
use strict;
use warnings;
Main('directory');

sub Main { }