in reply to Re: regular expression with @@/
in thread regular expression with @@/
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; }; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: regular expression with @@/
by kennethk (Abbot) on Dec 07, 2009 at 18:30 UTC | |
by jim_neophyte (Sexton) on Dec 07, 2009 at 18:33 UTC |