CosmoShop is the largest pure Perl based shop system.
Since 1997, we have been implementing sophisticated and individual eCommerce projects in the B2B sector with our specially developed store software. We are the central point of contact for the entire spectrum.
Spoiler Alert: This weekly challenge deadline is due in a few days from now (on June 23, 2024 at 23:59). This blog post provides some solutions to this challenge. Please don’t read on if you intend to complete the challenge on your own.
Task 1: Goat Latin
You are given a sentence, $sentance.
Write a script to convert the given sentence to Goat Latin, a made up language similar to Pig Latin.
Rules for Goat Latin:
1) If a word begins with a vowel ("a", "e", "i", "o", "u"), append "ma" to the end of the word.2) If a word begins with consonant i.e. not a vowel, remove first letter and append it to the end then add "ma".3) Add letter "a" to the end of first word in the sentence, "aa" to the second word, etc etc.
We only had one issue to discuss, the pressing matter of how to handle lexical unimports, builtin version bundles, the integration with use VERSION, and various related topics.
It’s complicated. We’ve been putting together a longer mail on the subject and that will come out as its own thread soon.
DBD::mysql has long provided the interface to connect to the MySQL database from Perl code. But as old as it is, it was implemented with some critical bugs that cannot simply be corrected without breaking mountains of existing code relying on those bugs. For this same reason, though DBD::MariaDB corrects these bugs, care must be taken when migrating existing code to avoid subtle breakage.
Spoiler Alert: This weekly challenge deadline is due in a few days from now (on June 16, 2024 at 23:59). This blog post provides some solutions to this challenge. Please don’t read on if you intend to complete the challenge on your own.
Task 2: B After A
You are given a string, $str.
Write a script to return true if there is at least one b, and no a appears after the first b.
The 2023 Dancer Advent Calendar, the Twelve Days of Dancer is up and running! We hope you'll enjoy this year's version - there's a lot of fun and practical gifts to be found there.
Spoiler Alert: This weekly challenge deadline is due in a few days from now (on June 16, 2024 at 23:59). This blog post provides some solutions to this challenge. Please don’t read on if you intend to complete the challenge on your own.
Task 1: Percentage of Character
You are given a string, $str and a character $char.
Write a script to return the percentage, nearest whole, of given character in the given string.
Worked out final resolving actions for security issues.
Discussed recent mailing-list posts about making method non-public
by default. This probably won’t work but we could open a PPC
discussion on my method + $obj->&method syntax.
Reviewed Projects in Flight - posted below
Merged the PR for PPC 0022 (Metaprogramming API). Discussions on
individual points can be made using GH Issues
Projects in Flight
HTTPS out of the box
— (Paul) has nudged Mark Gardner by email
PPC 0013 overload in join
— (Philippe) should open an issue with his thoughts on the topic
PPC 0014 English names
— (Paul) should check in with Joe McMahon
PPC 0019 qt Strings
— (Paul) now has TPF Core Development Grant so can start writing
this Any Day Now(TM)
PPC 0021 Optional chaining
— (Paul) should check in with Veesh Goldman
PPC 0022 Metaprogramming API
— (Paul) has a CPAN module, would be nice if anyone started using
it for any reason
(Graham) to write a PPC for ->&
Perl roadmap for 2024
— Yeah it’d be nice if we had one, but without having any weight of
promise behind it it’s just words
TODDR to write a draft pod/security_disclosure_process.pod (not in
December), and also offered to coordinate the next incident
I am sick and tired of hearing this, so let's put it this to the test. Assume you know little of Perl, or any programming language for that matter. Can you parse the code?
I hope the piece above is the first in a series to convince people to consider the reality before passing judgement. It was inspired by one of our research analysts discovering Perl and awk to simplify their lives when cleaning data.
I've spent almost all of my time since my [last post here](
https://blogs.perl.org/users/ingy_dot_net/2023/05/perl-toolchain-synergy.html)
working on a new programming language, YAMLScript.
It's working now and I've decided a do a [2023 Advent YAMLScript Blog](
https://yamlscript.org/posts/advent-2023/index/) for it.
The blog started last Friday and will continue (at least) until December 24th.
I encourage you to follow along. At some point this month YAMLScript modules
will become available for CPAN and Raku and many other languages.
I also encourage you to try writing an [Advent of Code 2023](
https://adventofcode.com/) solution in YAMLScript, if you are playing along
with AoC this year.
Spoiler Alert: This weekly challenge deadline is due in a few days from now (on June 9, 2024 at 23:59). This blog post provides some solutions to this challenge. Please don’t read on if you intend to complete the challenge on your own.
Task 2: String Score
You are given a string, $str.
Write a script to return the score of the given string.
The score of a string is defined as the sum of the absolute difference between the ASCII values of adjacent characters.
Paul’s TPRF grant was accepted, he plans to spend some of that time to work on some PPCs first (qt strings, overload)
FOSDEM Perl Devroom CfP: none of us are planning to attend in person, but if someone else wanted to present on our behalf we could coördinate with them and work out a subject to talk about
Discussed coming up with a Perl roadmap that we could present to the world (and entice sponsorship for TPRF’s Perl Development Fund and Grants program)
We discussed opening up our meetings to the occasional guest, so they could see what we’re actually doing (boring!) and give us an outside perspective
I've struggled with the syntax highlighting here on this blog. I really want to use this site and I will continue to do so.
After trying in vain to get some "auto" syntax highlighting here via the editor, I reached for an old trick I've used in the past. Generating HTML using some external service. After a quick Google search, I found https://tohtml.com/perl/. Given a block of Perl code, it'll generate HTML based syntax highlighting that one may add to their post. For example,
Spoiler Alert: This weekly challenge deadline is due in a few days from now (on June 9, 2024 at 23:59). This blog post provides some solutions to this challenge. Please don’t read on if you intend to complete the challenge on your own.
Task 1: Defang IP Address
You are given a valid IPv4 address.
Write a script to return the defanged version of the given IP address.
A defanged IP address replaces every period “.” with “[.]".
Der nächste Deutsche Perl/Raku-Workshop wird vom 15. bis 17. April 2024 in Frankfurt stattfinden. Damit wir interessante drei Tage mit Perl und Raku verbringen können, brauchen wir Vorträge und Teilnehmer... Vortragsvorschläge könnt ihr bereits einreichen und auch anmelden könnt ihr euch schon hier...
The German Perl/Raku workshop will take place
on the 15th to 17th April 2024 again in Frankfurt am Main.
We will spend three interesting days with Perl and Raku, so you are invited
to participate and also to give presentations.