in reply to Re^6: Any good ways to handle NARROW NO-BREAK SPACE characters in regex in newer versions of Perl?
in thread Any good ways to handle NARROW NO-BREAK SPACE characters in regex in newer versions of Perl?
Ok, I gotta think we are looking at a bug here:
#! /usr/bin/env perl use v5.36; use utf8; # get all the files in the current directory my @files = glob("*"); my ($file) = grep { /Screenshot-2024-02-23-at-1.05.14\s/ } @files; say $file; # ERROR! my $blah = "Screenshot-2024-02-23-at-1.05.14 AM.png"; say $blah =~ /Screenshot-2024-02-23-at-1.05.14\s/; # WORKS!
The screenshot file definitely exists in the directory.
$PM = "Perl Monk's";
$MC = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest Vicar Parson";
$nysus = $PM . ' ' . $MC;
Click here if you love Perl Monks
|
|---|