in reply to Re^2: need help in extracting lines
in thread need help in extracting lines

/^Table regex needs an 's' trailing modifier

Depends on what you want in the $table variable. I was intending to get the name of the table, i.e. only what follows 'Table:' on that line. Adding the s modifier would put the entire rest of the paragraph into the variable.

the '[Alias]' line actually ends with a trailing space, and is '[Alias] '

In that case, I'd write

if ( $tag eq '[Alias] ' )
:-)

But more importantly, square brackets are special in regular expressions, so you'd want to escape them if you go that route:

if ( $tag =~ /\[Alias\]/ )

Between the mind which plans and the hands which build, there must be a mediator... and this mediator must be the heart.