John W. Krahn wrote:
> John Plum wrote:

>> May I introduce myself, John Plumridge, London, UK. 
> 
> John W. Krahn, Vancouver, Canada.

Steve Bertrand, Port Hope, Ontario, Canada :)

>> #---Assemble/concatenate references in both ascii and html, to make
>> full confirmatory message bodies with order details---
>>
>> $scalar_sig = "\printFile($signature)";
> 
> You can not call a subroutine from inside a string.  Just the $signature
> variable and the backslash get interpolated.

Not to take away from any of the great feedback you supplied to the OP,
or to be ignorant or argumentative in any way, but I recently found it
handy to use something similar to this ( personally ) unrecommended and
noisy piece of syntax to extract the result of a function within quotes:

#!/usr/bin/perl

use warnings;
use strict;

my $string = "d'oh";

my $return_from_sub_in_quotes = "${\( marine( $string ) )}";

print "$return_from_sub_in_quotes\n";

sub marine { return shift; }

__END__

> $scalar_sig = printFile( $signature );

...of course, John's method above is a far better approach, and is the
right way. On my next pass through the particular routine that uses the
above noise, I'll be replacing it with something more maintainable :)

Steve

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to