On Feb 7, Jeff 'japhy' Pinyan said:

>  ($func, $fname, @args) = (
>    "UCM::ucmPiperNewsDB",
>    \&UCM::ucmPiperNewsDB,
>    $file, uc("INTERNET_$env"), $script,
>  );
>
>  print "Simulating $func(@args)\n";

I was trying to avoid the multiple variables, and specifically having 
to change two strings/variables where there is really only one value 
(since this might end up being a big if (why no switch/case?) so 
I will cut and pasto.  This solution does work.

>  $fname->( @args );

Will the subroutine be called as if I had used &subroutine?  I don't 
see how it could since I am passing parameters, but I don't want 
to execute it that way (without it's own parameter stack) so I want 
to be sure.  I read about this in perldoc perlsub but couldn't find 
this detail.  Also, if I did want it to be called as &subroutine 
(not that I would), how would I specify this?

When I use uc( "INTERNET_$env_NEWS" ), the result is "INTERNET_".
I have to use "INERNET_${env}_NEWS".  Is that a bug or a feature,
and if a feature, what is the feature?








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

Reply via email to