J. Peng schreef:
> Dr.Ruud:
>> J. Peng:
>>> Dr.Ruud:
>>>> Jenda Krynicky:
>>>>> @signs = map quotemeta($_) @signs;
>>>>
>>>> @signs = map quotemeta($_), @signs;
>>>> (there was a comma missing)
>>>> which you could even write as
>>>> @signs = map quotemeta, @signs;
>>>
>>> or:
>>> @signs = map { quotemeta } @signs;
>>
>> That is not the same, because it sets up a codeblock.
>> See `perldoc -f map`.
>
> I mean the results are the same, not the process.
> See also `perldoc -f map'.
One of the results of writing it the way you added, is that a codeblock
is set up.
--
Affijn, Ruud
"Gewoon is een tijger."
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/