bareword Questions
3
Solved
Perl docs recommend this:
$foo = $bar =~ s/this/that/r;
However, I get this error:
Bareword found where operator expected near
"s/this/that/r" (#1)
This is specific to the r modifier, withou...
2
Solved
Looking at Type::Tiny, I see that the class name in the call to Type::Tiny->new is quoted in the official docs,
my $NUM = "Type::Tiny"->new(
name => "Number",
constraint => sub { loo...
Drumbeat asked 26/11, 2019 at 2:9
2
Solved
Why is the following use line legal Perl syntax? (Adapted from the POD for parent; tested on Perl 5.26.2 x64 on Cygwin.)
package MyHash;
use strict;
use Tie::Hash;
use parent -norequire, "Tie::Std...
Beckybecloud asked 10/12, 2018 at 14:9
1
Solved
I wanted to see if it was possible to define new keywords or, as they're called in Destroy All Software's "WAT" talk when discussing Ruby, bare words, in Python.
I came up with an answer ...
2
Solved
The documentation for the open function shows the syntax of open() as:
open FILEHANDLE,EXPR
open FILEHANDLE,MODE,EXPR
open FILEHANDLE,MODE,EXPR,LIST
open FILEHANDLE,MODE,REFERENCE
open FILEHANDLE...
Trulatrull asked 29/6, 2013 at 2:38
1
© 2022 - 2024 — McMap. All rights reserved.