I tried the split function, but got an error
print "Please enter the files to be removed: \n"; my @removed_files = split, <STDIN>; foreach my $file (@removed_files) { print "FILE: $file \n"; unlink ($file); } ~
Here is the error thrown
Please enter the files to be removed: Use of uninitialized value $_ in split at ./Chapter13_Exer4a line 14.
TIA the Catfish
In reply to Re^2: remove files
by catfish1116
in thread remove files
by catfish1116
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |