> Why is $1 empty after this code executes? By all accounts it should be
> "Adam". What is up? Does this facility not exist in Macperl for some
> reason?

It sure does! :-)

> $_="Adam walked away fast";
> /Adam/;
> print $1;

You're not trapping the matched pattern. Put some parens around your pattern
as in /(Adam)/ -- that should do the trick.

- David

Reply via email to