- or download this
#!/opt/perl5/current/bin/perl
...
next unless -e $file;
print "$file \n";
}
- or download this
foreach $file ( grep {-e} @files ) {
print "$file\n";
}
- or download this
@files = ( $CONFIG =~ /[*?]/ ) ? glob( $CONFIG ) : ( -e $CONFIG ) ? (
+$CONFIG ) : ();