I have this code snippet...


$x = 1;
$y = 2;

sub foobar {
        print "You fired the subroutine!\n";
}

print <<END_OF_STUFF;

I think x is $x and y is $y.
&foobar
Did the subroutine fire?

END_OF_STUFF


When I run it, the scalar variables $x and $y are interpreted in the print
statement, but the subroutine doesn't fire.  Is there a way to trigger a
subroutine from within a print << statement?


____________________
Chris Spurgeon
Senior Design Technologist
[EMAIL PROTECTED]
This e-mail is intended solely for the above-mentioned recipient and it may
contain confidential or privileged information.  If you have received it in
error, please notify us immediately and delete the e-mail.  You must not
copy, distribute, disclose or take any action in reliance on it.  In
addition, the contents of an attachment to this e-mail may contain software
viruses which could damage your own computer system.  While Electronic Ink,
Inc. and E Ink Ltd have taken every reasonable precaution to minimize this
risk, we cannot accept liability for any damage which you sustain as a
result of software viruses.  You should perform your own virus checks before
opening the attachment.

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

Reply via email to