> 
> Method calls should interpolate in double-quoted strings, and similar
> locations.
> 
>     print "Today's weather will be $weather->temp degrees and sunny.";

A possibility that does not appear in RFC222.1 is to put tho whole
accessor expression inside curlies:

        print "Today's weather will be ${weather->temp} degrees and sunny.";

which would follow the "You want something funny in your interpolated
scalar's name or reference, you put it in curlies" rule.  Since the contents
of that expression is not strictly \w+ it does not get interpreted as
the symbol table lookup ${'weather->temp'}, so that is not a problem, nor
are the whitespace situations listed in the CAVEATS section.





-- 
                          David Nicol 816.235.1187 [EMAIL PROTECTED]
           perl -e'map{sleep print$w[rand@w]}@w=<>' ~/nsmail/Inbox

Reply via email to