develooper Front page | perl.perl5.porters | Postings from June 2004

Re: [perl #30045] Transliteration replacement not terminatedmessage obscure

From:
Nick Ing-Simmons
Date:
June 7, 2004 01:26
Subject:
Re: [perl #30045] Transliteration replacement not terminatedmessage obscure
Message ID:
20040607082555.4242.2@llama.elixent.com
Tassilo Parseval <tassilo.parseval@post.rwth-aachen.de> writes:
>
>It's talking about y(). 'y' is an alias for 'tr' and in the above case
>perl doesn't reckognize 'y()' as a function call but rather as a crippled
>transliteration which - according to perl - should read as
>
>    y()();

In his code I think it is expecting 
     y(){} 

I think the fix is add a space:
     y() { ... 

>
>With the current behaviour, it seems impossible to have 'y' as a
>function and call it with parens. I doubt that this is easy to fix.
>
>Tassilo




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About