in reply to Get string for a word in a file after some specific pattern compare
my $s="TARGET=toto"; my ($word)= ($s=~/TARGET\s*=\s*(\w+)/); print "word: $word\n";'
But you should really read the doc (perldoc perlre) or books like the Camel if you know that little and want to use Perl.
|
|---|