regex weirdness

T

thorsten schau

Hi,

I wonder why the 'yes' print does not go thru.

if($line =~ /\$\{general-foo\s+(\S+)([^}]*)\}/ {
my $thewhole = $&;

print"thewhole: $thewhole\n";
print"yes\n" if $line =~ m/$thewhole/;

}

$& and $thwhole has exactly the matched string from $line.

any idea?

thanls
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,135
Messages
2,570,783
Members
47,341
Latest member
hanifree

Latest Threads

Top