How does FALSE acts when passed to sub?

2002-10-25 Thread Ohad Ohad
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

Re: How does FALSE acts when passed to sub?

2002-10-25 Thread Paul Johnson
Ohad Ohad said: 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