develooper Front page | perl.perl6.users | Postings from September 2017

Need a second pair of eyes

Thread Next
From:
ToddAndMargo
Date:
September 25, 2017 06:56
Subject:
Need a second pair of eyes
Message ID:
106f894d-a4a4-d82f-5d40-a9dd887c682b@zoho.com
<code>
1: #!/usr/bin/env perl6
2:
3: say "Full file name <$?FILE;>
4:
5: my $IAmFrom;
6:   $IAmFrom = $?FILE;
7:   $IAmFrom ~~ \.*/||;
8: say "IAmFrom <$IAmFrom>";
</code>

$ /home/linuxutil/FileTest.pl6
===SORRY!=== Error while compiling /home/linuxutil/FileTest.pl6
Variable '$IAmFrom' is not declared
at /home/linuxutil/FileTest.pl6:5
------> my ⏏$IAmFrom = $?FILE;


Sure look declaired to me.  What did I typo?

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About