in reply to string as ref ?!?!

If you use "use strict" then perl will catch those. If you notice the second groups rrr reference prints a value that has not even been set. I don't know how perl handles these situations without use strict, so i don't know why this happens.

Replies are listed 'Best First'.
Re: string as ref ?!?!
by Abigail-II (Bishop) on May 10, 2004 at 11:18 UTC
    The second example works exactly as the third example. It doesn't matter what string we use - an empty string works the same as a string with a different value.
    "" -> {foo}
    is the same as
    ${""}{foo}
    just like
    "Bar" -> {foo}
    is the same as
    ${"Bar"}{foo}

    Abigail

Re: Re: string as ref ?!?!
by dave_the_m (Monsignor) on May 10, 2004 at 11:03 UTC