fork download
  1. #!/usr/bin/perl
  2. # your code goes here
  3.  
  4. my @files = qw( dir1/file1 dir1/file2 dir1/file3 );
  5.  
  6. foreach (@files) {
  7. s~/~_~;
  8. print $_ . $/;
  9. }
Success #stdin #stdout 0s 6000KB
stdin
Standard input is empty
stdout
dir1_file1
dir1_file2
dir1_file3