[wplug] novice question on perl assignment operator

Juan Zuluaga jz31416 at yahoo.com
Mon Jan 29 15:45:42 EST 2007


Dear wplug people, 

I got bitten by something very very basic, 

#!/usr/bin/perl -w
use strict;

my $a = "a";
my $b = "b";
my $concat = $a . $b;
print "$concat\n";
   $b = "newb";
print "$concat\n";  # prints  ab instead of anewb ! 

how should i define $concat to make it respond to
changes in its constituents? (what would be technical
terms for this ?) 

http://socioenlinea.blog.lemonde.fr/socioenlinea/
Comentarios sobre politica, sociedad y ciencia social.


 
____________________________________________________________________________________
Food fight? Enjoy some healthy debate 
in the Yahoo! Answers Food & Drink Q&A.
http://answers.yahoo.com/dir/?link=list&sid=396545367


More information about the wplug mailing list