ToddAndMargo schreef op 2017-03-10 22:10:
On 03/10/2017 09:53 AM, Timo Paulssen wrote:
I don't quite understand what's wrong with just
my $TheValue = $?FILE.subst(/.* "/"/, "" :g);
near the top of your module?
Hi Timo,
Because it gives you "Use of uninitialized value $TheValue"
when you go to use it inside one of the "is export" subs
:'(
Many thanks,
-T
On 03/10/2017 01:32 PM, Theo van den Heuvel wrote:
> Not with me it doesn't.
>
> my $TheValue = $?FILE.subst(/.* "/"/, "", :g);
> sub sayfn is export { $TheValue.say }
>
> Could something else be wrong here?
>
> cheers,
> Theo
>
Hmmmmm. How does it do with "sub sayfn" commented out?
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Computers are like air conditioners.
They malfunction when you open windows
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~