[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[FWP] Small "fun" with Double quote interpolation



Another little one

I tend to wrap print statements in double quotes,

    print "the foo variable contains $foo\n";

But I was recently tripped up when I tried

    use Boulder::Blast;

    # ... intervening code removed

    $blast = Boulder::Blast->parse($outputfile);

    print "$blast->Blast_db\n";

Serves me right to type on autopilot. Chris has been telling me to 
break this habit...

Wanna guess? (Spoiler below)











     Stone=HASH(0x1dba98)->Blast_db


-- --
        |\      _,,,---,,_       Vicki Brown <vlb@cfcl.com>
  ZZZzz /,`.-'`'    -.  ;-;;,_   Journeyman Sourceror: Scripts & Philtres
       |,4-  ) )-,_. ,\ (  `'-'  P.O. Box 1269  San Bruno  CA  94066
      '---''(_/--'  `-'\_) http://www.cfcl.com/~vlb  http://www.macperl.com

==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe