Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

The Monastery Gates

( [id://131]=superdoc: print w/replies, xml ) Need Help??

Notices:

erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

If you're new here please read PerlMonks FAQ
and Create a new user.

Quests
Wall of Larry Quest
Starts at: Feb 26, 2024 at 05:00
Ends at: Dec 31, 2024 at 04:59
Current Status: Active
2 replies by jdporter

    By now you've all seen The St. Larry Wall Shrine. Well, it could use a fresh coat of gold leaf and shellac. Therefore, we are soliciting Larry-related items to be placed on the shrine. Links to offsite content are good; or if you have small bits of content, such as quotes, you'd like to contribute, that's fine too. Please reply to this Quest with your humble offerings. Thank you! And may St. Larry bless your codings and your debuggings.

poll ideas quest 2024
Starts at: Jan 01, 2024 at 00:00
Ends at: Dec 31, 2024 at 23:59
Current Status: Active
4 replies by pollsters
    First, read How do I create a Poll?. Then suggest your poll here. Complete ideas are more likely to be used.

    Note that links may be used in choices but not in the title.

Perl News
List of 2024 TPRC Science Track Talks Videos
on Jul 02, 2024 at 15:08
0 replies by oodler
2024 Golden PERL Award voting ends 6/27 4PM PDT
on Jun 27, 2024 at 00:51
2 replies by oodler
    Sorry I didn't get this out here earlier, but Perl Community (parent org of the Science Perl Committee that is initiated the Science Track) is giving out a "peoples choice" award at the end of Conference Lightning Talks. It's sincere gesture from us and allows anyone to vote for anyone in the Perl community at large, as a "thank you" from us.

    link to Google voting form

    The Science Track talks have been great, some are even starting to come online. Thanks to everyone who made this happen, especially the TPRC Planning Committee.
Supplications
Storable: Cannot restore overloading on SCALAR
3 direct replies — Read more / Contribute
by cormanaz
on Jul 15, 2024 at 15:50
    I have a storable file I created on another Windows system (using method nstore) that I am trying to retrieve on the Windows system I'm using. I am getting error: Cannot restore overloading on SCALAR(0x1ed598a2d40) (package JSON::XS::Boolean) (even after a "require JSON::XS::Boolean;") at C:/Strawberry/perl/lib/Storable.pm

    The odd thing is that I can retrieve it just fine on the other system so it's apparently not a problem with the file. Versioning problem?

    • Other system: Activestate Perl 5.16.2 Storable 2.39
    • This system: Strawberry Perl 5.38.2 Storable 3.32

    If so is there a workaround?

Repeating a capture group pattern within a pattern
5 direct replies — Read more / Contribute
by mldvx4
on Jul 15, 2024 at 03:09

    I am looking to simplify a pattern. If I have a string my $x = "0.01 NaN 2.30 4.44"; then the following pattern finds the items present:

    my $r1 = qr/([Na0-9\.\-\+]+)\s+ ([Na0-9\.\-\+]+)\s+ ([Na0-9\.\-\+]+)\s+ ([Na0-9\.\-\+]+)/x;

    Notice that the same capture group criteria are repeated. I wonder how I may write that so it is simpler, shorter, and all on one line. Here is some pseudo-code to try to show what I am aiming for: my $r1 = qr/(?=([Na0-9\.\-\+]+)\s+){4}/

    However, I've tried that and some permutations without luck:

    #!/usr/bin/perl use strict; use warnings; my $x = "0.01 NaN 2.30 4.44"; # the following works as desired my $r1 = qr/([Na0-9\.\-\+]+)\s+ ([Na0-9\.\-\+]+)\s+ ([Na0-9\.\-\+]+)\s+ ([Na0-9\.\-\+]+)/x; my ($d, $e, $f, $g) = ($x =~ m/$r1/x ); print qq($d, $e, $f, $g\n); # the following finds the first number twice my $r2 = qr/(?=(([Na0-9\.\-\+]+)\s*)){4}/x; ($d, $e, $f, $g) = ($x =~ m/$r2/x ); print qq($d, $e, $f, $g\n); # the following finds a null prior to the first item my $r3 = qr/((?=([Na0-9\.\-\+]+)\s*){4})/x; ($d, $e, $f, $g) = ($x =~ m/$r3/x ); print qq($d, $e, $f, $g\n); exit(0);

    How can I write that pattern so that the pattern it contains is repeated but not locked into the values found in the very first match? Is this a case for using recursive patterns?

DBI or module for 'borland database'
1 direct reply — Read more / Contribute
by sectokia
on Jul 14, 2024 at 23:21

    Hi Monks, has anyone heard of a module or interface for reading Borland Database Engine Database UDF files?

    The files I want to read all have magic identifier: 0xBDE01996 (first 4 bytes: 96 19 E0 BD)

    The file format looks fairly simply: strings with some binary separators/length components. However I cannot find anything that reads it or even a description of the file format?

PerlMonks Discussions
Rapid access to posting by "self"
3 direct replies — Read more / Contribute
by jmClifford
on Jul 10, 2024 at 01:54

    Hi. As the title suggests, is it possible to access one own postings.

    Regard JC......

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-07-16 19:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.