http://qs321.pair.com?node_id=1018813

symgryph has asked for the wisdom of the Perl Monks concerning the following question:

I am trying to get a script that will print the last line of some PIX files I have.
access-list blah extended permit tcp object-group blah_Assets object-g +roup mygroup eq www
My script follows:
#!/usr/bin/perl -w while (<>) { m#(\w+$)#; print "$1\n"; }

Yet nothing seems to match even when I use memory. I know the regex is right, I verified that with regex coach. I want to match 'www' in the above example and print it. Any ideas?

"Two Wheels good, Four wheels bad."