- or download this
use threads;
use threads::shared;
my $var : shared;
- or download this
use Me;
my $user : Me;
$user = "Random"; # this is OK
$user = "Deterministic"; # croaks
- or download this
#!/usr/bin/perl
use strict;
...
sub str {"Not telling you"};
1;
- or download this
> perl -Mlib=. -MMe -le'my $m = new Me (Random);print $m'
Not telling you
...
# But I can not suss out how to get his to work
> perl -Mlib=. -MMe -le'my $m : Me; $m = "Random"; print $m'
Invalid SCALAR attribute: Me at -e line 1