>>>>> "Nikola" == Nikola Janceski <[EMAIL PROTECTED]> writes:

Nikola> Thanx... didn't know that it was an empty list... I thought it was ''

Ahh, but in a scalar context, it is!  Isn't context wonderful? :)

*This* would push alternating 1's and ""'s to the list:

@output = map { scalar /(foo)bar/ } "foobar", "shelter", "buffoobar";

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

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

Reply via email to