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
In reply to Re^2: trying to convert from awk to perl
by ambrus
in thread trying to convert from awk to perl
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |