James Curtis-Smith
- Website: jamessmith.me.uk
- About: Perl developer for nearly 30 years now, mainly in maintenance scripts and web pages, using mod_perl. I also code a lot in PHP (20+yrs), and also extensive experience in HTML (27+yrs), Javascript(25+yrs), CSS (24+yrs) and SASS.
Recent Actions
-
Posted Perl weekly challenge 105 to James Curtis-Smith
Here are solutions to this weeks challenges from the Perl Weekly Challenge.
You can find my full code on Github
Nth root
… -
Posted Perl weekly challenge 104 to James Curtis-Smith
Here are solutions to this weeks challenges from the Perl Weekly Challenge.
You can find my full code on Github
Task 1: FUSC s…
-
Posted Perl weekly challenge 103 to James Curtis-Smith
Here are solutions to this weeks challenges from the Perl Weekly Challenge.
You can find my full code on Github
Task 1: Chines…
-
Posted Perl weekly challenge 102 to James Curtis-Smith
Here are solutions to this weeks challenges from the Perl Weekly Challenge.
You can find my full code on Github
Task 1: Rare N…
-
Posted Perl weekly challenge 101 to James Curtis-Smith
Here are solutions to this weeks challenges from the Perl Weekly Challenge.
You can find my full code on Github
Task 1: Pack a…
-
Posted Perl weekly challenge 100 to James Curtis-Smith
We are finally here - we have hit week 100 of Manwar's Perl Weekly Challenges, and here are solutions to this weeks challenges from the Perl Weekly Challenge.
You can find my full code on ="https://github.com/manwar/perlweeklychallenge-…
-
Posted Perl weekly challenge 99 to James Curtis-Smith
Here are solutions to this weeks challenges from the Perl Weekly Challenge.
You can find my full code on Github
Challenge 1
-
Commented on Perl weekly challenge 98
Dave - the reason I pointed out not using a state variable is that is only useable by a single function. In the example I include some clean-up and diagnostic functions which were/are useful - but would have needed access...
-
Posted Perl weekly challenge 98 to James Curtis-Smith
Here are solutions to this weeks challenges from the Perl Weekly Challenge.
You can find my full code on Github
Challenge 1
-
Posted Perl weekly challenge 97 to James Curtis-Smith
Here are solutions to this weeks challenges from the Perl Weekly Challenge.
You can find my full code on Github
Challenge 1
-
Posted Perl weekly challenge 96 to James Curtis-Smith
This week we had contrasting challenges.
Challenge 1 - Reverse Words
Take a string of words {with arbitrary white space around the words} and reverse the order of the words in the string and removing any redundant white space.
This is a classic example of a 1-liner....
-
Commented on Perl weekly challenge 95
Two things about the first comment: Perl best practises recommends that you explicitly return from any function - rather than miss the return out as it makes things easier to read. The challenge requested a return of 1 or 0...
-
Posted Perl weekly challenge 95 to James Curtis-Smith
Palindromic numbers
You are given a number
$N
. Write a script to figure out if the given number is Palindrome. Print 1 if true otherwise 0.There is an easy solution to this - to use "reverse" in string context to reverse the number and comparing …
-
Posted Perl weekly challenge 94 to James Curtis-Smith
The two challenges this week were a nice introduction to the new year.
Challenge 1 - Group words into groups of anagrams.
This is a nice hash or "arrayref"s question - a Perl staple. For each group we need to generate a key, and put every anagram into this bin.
The simple…
-
Posted Perl weekly challenge 93 to James Curtis-Smith
These are some answers to the Week 93 of the Perl Weekly Challenge organized by Mohammad S. Anwar.
Spoiler Alert: This weekly challenge deadline is due in a few days (January 3, 2021). This blog post offers some solutions to this chal…
-
Posted Perl weekly challenge 92 to James Curtis-Smith
These are some answers to the Week 92 of the Perl Weekly Challenge organized by Mohammad S. Anwar.
Spoiler Alert: This weekly challenge deadline is due in a few days (December 27, 2020). This blog post offers some solutions to this ch…
-
Commented on Perl Weekly Challenge 78: Leader Element and Left Rotation
I like to see that you have done the reverse solution for the first one - it is really elegant and the method I used. Not sure if it is more optimal (don't know perl internals well enough) but to...
Comment Threads
No responses to comments.
Responses to Comments from James Curtis-SmithAbout blogs.perl.org
blogs.perl.org is a common blogging platform for the Perl community. Written in Perl with a graphic design donated by Six Apart, Ltd.