lets say:
$_ = "Hello";

With the following subs calls:

1. sub(m/H/);
2. sub(m/R/);
3. sub(m/H/, 1);
4. sub(m/R/, 1);

Now when I check @_ inside sub I get.

1. ('1');
2. ();#Empty
3. ('1', 1);
4. (1)#??? Wierd doesn't sub knows it's getting two parameters (due to the comma)?

Can anyone shed light on this.

I guess the main questions are:
What exactly is FALSE as returned by match (or any other boolean op)?
Why in cases 2 & 4 (mainly 4) the list of variables to the sub looks like it does.

10x a LOT.

_________________________________________________________________
Unlimited Internet access for only $21.95/month.  Try MSN! http://resourcecenter.msn.com/access/plans/2monthsfree.asp


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to