Hello,

  |use warnings;
  |use strict;
  |
  |# Question:  In the following, any suggestions for ensuring
  |#            that $stuff will be "  Twice 3 is 6"?  
  |#
  |#            For example, if the here-document were re-written
  |#            to be something like: 
  |#                    Twice $foo is eval{2*$foo}
  |#            how would one "escape" the eval so that it would
  |#            indeed evaluate its contents?
  |# 
  |my $foo = 3;
  |
  |my $stuff = <<here_doc;
  |  Twice $foo is 2*$foo
  |here_doc
  |
  |__END__


  Thanks,

  --Suresh

_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to