John W. Krahn wrote:
Paul wrote:

--- Julien Motch <[EMAIL PROTECTED]> wrote:

#The next line printsd the reference why ?
print("the host which you are connecteed to is $pop->Host()\n"); #
Mail::POP3Client=HASH(0x8153a8c)->Host()
Inside the quotes, the -> operator is taken as printable characters.

No, it is not.

$ perl -le' $x->{one} = "HELLO"; print "Test $x->{one} test"'
Test HELLO test

Thats a hash lookup. The op tried to call a method in double quotes. I dont know exactly what happens, I'd say that since the interpreter saw that there was NOT a block "{ }" after the dereference operator it decided to take the "->" as prinable characters.

Todd W.


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

Reply via email to