On 2/2/07, oryann9 <[EMAIL PROTECTED]> wrote:

I am aware of the bit | operator

Perl does have a bitwise operator whose name is the vertical pipe
character; but the one under discussion is the regular expression
operator whose name is the vertical pipe character. Both uses treat
the vertical bar as something that means "or", but in very different
ways.

Inside a regular expression, the vertical bar metacharacter denotes
alternative matches; one side matches "or" the other.

In ordinary Perl expressions, the vertical bar operator denotes the
arithmetic bitwise-OR operation.

Hope this helps!

--Tom Phoenix
Stonehenge Perl Training

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to