Tad McClellan:
> Dr.Ruud:
>> print ''.($_=$string, s/$word/reverse $word/ieg)[0], "\n";
>> As you can see, I dont know how to stop 'print' to be a function.
>
> I think this post should clear it up:
>
> Message-Id:
The Internet standard way to express such a pointer:
<news:>
(see RFC 3986)
> IOW, simply choose to put parenthesis around print's argument list
> when you have a parenthesis following the function name.
Yes, I even knew the FAQ, but I hadn't tried it yet. I had even tried
the "+" but couldn't get it to work.
perldoc -f print says: Also be
careful not to follow the print keyword with a left parenthesis
unless you want the corresponding right parenthesis to termi-
nate the arguments to the print--interpose a "+" or put paren-
theses around all the arguments.
OK, now I tried again. This gives the requested output:
print (($_=$string, s/$word/reverse $word/ieg)[0], "\n");
and this too:
print +($_=$string, s/$word/reverse $word/ieg)[0], "\n";
--
Affijn, Ruud <http://www.pandora.com/?sc=sh770781&cmd=tunermini>
"Gewoon is een tijger."