Im absolutely stumped on this one.  $_[0] is either '#ff0000' or 'red' it doesnt seem 
to matter.  When I print to STDOUT I get what I would expect - the value of $_[0] 
printed to the screen.  BUT when I print to IMAGE I dont get anything.  Why does 
$color not have a value when I print to a file handle??  Ive also tried ${color}.  Ive 
tried setting $color to a dummy value just before I print to the filehandle.  In this 
case, I DO get the dummy value printed to the file handle.  Any ideas?  

Thanks for your time.

-tyler


open(IMAGE, ">d://perl/svg/files/${base}.${species}.${day}.${a}.svg") || die "Cant 
open image.svg\n";

sub plotCells{
    my $color = $_[0];
    print "$color\n";                             # Tried $color = 'red'; 
    print IMAGE "$color\n";
} # End function &plotCells.



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to