in reply to Re: trying to convert from awk to perl
in thread trying to convert from awk to perl
and since all you're doing is matching $1 at the beginning of the string, you may as well be matching $0.
That's not true, the line
will not match /^F/ but as the leading space doesn't get into $1, $1 ~ /^F/ will be true.Foo
|
|---|