Philip Potter <philip.g.pot...@gmail.com> writes:

> You are quite correct - there is no practical difference in this situation.
>
> [nitpick: actually, if $/ has been set to something other than "\n",
> $chosen may have a trailing "\n" character.]

I was asking, not suggesting one over the other.  And was not offering
an opinion on it.... don't now enough.

>> Or do you mean its just better practice in general to use \A and \z,
>> just in case.
>
> Perl Best Practices, among others, considers \A and \z to be better
> style than ^ and $ because you are almost always matching on string

Sounds sensible to me.

Thanks


-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to