use warnings; use strict; my $file = shift or die "need filename from command-line"; open FH, '<', $file or die "could not open $file for reading: $!"; while( defined( my $line = <FH> )) { chomp $line; $line =~ m|\@\@/| && -f $line and do { ( $filename ) = $line =~ m|\A(.+)\@\@/|; chomp $line; print "$line -- "; next; }; }
In reply to Re^2: regular expression with @@/
by jim_neophyte
in thread regular expression with @@/
by jim_neophyte
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |