Skip to main content

Going nuts with this regex, looking for second pair of eyesThis works and returns several files:
```
my $image_name = quotemeta('Screenshot-2024-02-23-at-1.05.14');
my $files = $wac->get_all_files_in_dir($dir . '/uploads', qr/$image_name.*\.png$/);

```

This returns no files:
```
my $image_name = quotemeta('Screenshot-2024-02-23-at-1.05.14 AM');
my $files = $wac->get_all_files_in_dir($dir . '/uploads', qr/$image_name.*\.png$/);
```

Note the space in the file name before AM.

This also returns no files:
```
my $image_name = quotemeta('Screenshot-2024-02-23-at-1.05.14\s*AM');
my $files = $wac->get_all_files_in_dir($dir . '/uploads', qr/$image_name.*\.png$/);
```

I tried with and without quotemeta and with and without /Q /E to no avail.

Is it possible the space is some kind of invisible UTF8 character? This is driving me nuts.

**UPDATE:** I jumped on regex101.com and copied and pasted in the file name from the terminal and indeed there appears to be some kind of hidden character that is not whitespace:

preview.redd.it/icpdpzxj1gid1.…

Did a hex dump of the string:

00000000 53 63 72 65 65 6E 73 68 - 6F 74 2D 32 30 32 34 2D Screenshot-2024-

00000010 30 32 2D 32 33 2D 61 74 - 2D 31 2E 30 35 2E 31 34 02-23-at-1.05.14

00000020 E2 80 AF 41 4D 2D 31 30 - 32 34 78 36 39 38 2E 70 ...AM-1024x698.p

00000030 6E 67 0A ng.

submitted by /u/anki_steve
[link] [comments]


Symbolic Lookup Errorpreview.redd.it/6xs5lg07oned1.…

I am trying to run a POST call in perl, using UserAgent with the agent set as curl,

This Perl throws this error. Do you guys have any idea on how to resolve this?

I have only one installation of Perl.

submitted by /u/alistair_0111
[link] [comments]


Catalyst, macOS and weird request latency (only when using Safari)Just wondering if anyone else has managed to resolve a similar issue to the one I am facing below?

I've installed the latest version of Catalyst under a PerlBrew environment (v5.38.2) and I'm working through the Catalyst manual. I can run the generated script/app_server.pl with no modifications at all and everything seems ok. That is, until I connect Safari to 0.0.0.0:3000/r/perl/.rss as directed.

For some reason unknown to me, there is a roughly 30-second delay until the page is rendered. There are no Safari extensions enabled and there is no indication of any issue in Catalyst's console-logging.

Console Log

Safari Inspector Network Responses

I do not see this delay when issuing the same request from my Chromium-based browser (Brave). The response is instant.

I know the simple answer is to stop using Safari. Does anyone have any insights to share about what the problem might be with Safari? Other environmental factors: macOS Sonoma 14.5, running Catalyst under zsh in a tmux window.

Thanks.

submitted by /u/Biggity_Biggity_Bong
[link] [comments]


Visual Exploration of Perl Camel at TPRC 24 ConferenceI was lucky enough to attend the perl and raku conference this year and had a great time meeting lots of awesome people.

I am primarily a designer by trade but do code as well. At the conference, I explored a number of original depictions of the perl camel for fun and this one was my favorite. The idea was to bring a strikingly modern feel to the Perl Camel. Loose inspiration for this symbol is code llama and p****n. This design exploration felt like my way to hack something during the conference!

The idea behind this simple symbol is that it could work nicely at very small sizes while still being visually clear. The font is a free open-source display font called Jaro. the first image was also a concept of placing "Perl" in the camel symbol to strengthen the association between the "perl" and the camel symbol as this may be helpful for new developers. I could spend much more time on this but thought I would share!

Love it? Hate it? Let me know what you think (especially if you like it)

preview.redd.it/ce8225s3dc9d1.…

submitted by /u/North-Clue-2313
[link] [comments]