in reply to Read, Load and rename files from CD
can't see the point of having this line: system("clear"); maybe you need a chdir instead?
...And this is not correct because you need to define the variable first
chomp $fileName; my $fileName = <STDIN>;
Better like this:
my $fileName = <STDIN>; chomp $fileName;
You can use also a more compact form saving one line. Parens are required:
chomp (my $filename = <STDIN>);
What is "the correct file" for you? all files in the CD?
|
|---|