I am trying to prepend something and ran into an issue.
 
I am using a snipped like this:
 
if ($a == 1) { $pre = "nc_"; }
 
Later on when I try to use this:
 
print <<EOM;
<a href="">Something</a>
<a href="">SOmwhere</a>
Lots of other html snipped
EOM
 
Now when this prints the link Something will print nc_whoopi.pl?action="" when $a == 1 and whoppi.pl?action="" when $a != 1 ... But the last line the link SOmwhere will print nc_ew.pl?Action="" when $a == 1 and ew.pl when it doesn't?
 
Why does this work on the any think starting with w but nothing else? How can I get the $pre appended to my html? $pre has to be seperated from the script url or it thinks its actually a var?
 
Thanks,
John

Reply via email to