morandimus
- About: My real name is Jeremy Holland. I've been a programmer for 25 years, using primarily Perl since 2000.
Recent Actions
-
Posted Signed Up! to Thoughts::Perl::Random
Registered for
YAPCThe Perl Conference 2017. Travel and accommodations arranged!Excitement level: 3/5 and rising.
-
Commented on That Darn Single Quote
Agree!...
-
Posted That Darn Single Quote to Thoughts::Perl::Random
The more I think about the “single-quote as alternat…
-
Commented on Something New Every Day
I partially agree, but clarity first and foremost, and I would argue that print "$timestamp,$username,$operation,$result\n" is more readable than print "${timestamp},${username},${operation},${result}\n"...
-
Commented on Something New Every Day
Typo fixed. Thanks!...
-
Posted Something New Every Day to Thoughts::Perl::Random
Just now, while attempting to do
… -
Posted You Tried HOW MANY Times? to Thoughts::Perl::Random
="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-fareast-font-family:"Times New Roman";mso-hansi-font-family:Calibri; mso-bidi-font-family:Calibri;color:#44546A;mso-themecolor…
-
Commented on Else Clauses on Loops
Grinnz, I think the functionality of the continue block would be unaffected. It is executed after each iteration of the loop body, so if the loop block is executed at least once, the continue block is executed at least once...
-
Commented on Else Clauses on Loops
preaction, while googling around to see if any other languages have this feature, I encountered the else clause on loops in Python. I was really boggled... it seems like it's invoked in the exact opposite of circumstances when a loop's...
-
Commented on Else Clauses on Loops
Pawel, in your for loop example, the else clause would not be executed because the loop was executed at least once (it had to be entered in order to get to the last). In your while example, the else clause...
-
Commented on Else Clauses on Loops
Mithaldu, while you are technically correct (the best kind of correct!) I personally find the foreach spelling of for to be a lot more intuitive because it's more like natural language. And to me, fewer characters is never more important...
-
Posted Else Clauses on Loops to Thoughts::Perl::Random
="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-fareast-font-family:"Times New Roman";mso-hansi-font-family:Calibri; mso-bidi-font-family:Calibri;color:#44546A;mso-themecolor…
-
Commented on Not Comparing The Way You Meant
LOL, but you are absolutely correct in that failure to use strict and enable warnings is the first and worst problem....
-
Posted Not Comparing The Way You Meant to Thoughts::Perl::Random
Here’s another example of code taken, terrifyingly, …
-
Commented on Perl Challenge: Fun with Character Classes
Toby, I was waiting to see if anyone would submit guesses!...
-
Commented on Perl Challenge: Fun with Character Classes
Correct! You win a hearty handshake if I ever meet you in person!...
-
Posted Perl Challenge: Fun with Character Classes to Thoughts::Perl::Random
="font-size:12.0p…
-
Commented on Three Sort Functions
Certainly using a Schwartzian Transform (let alone a GRT) will be faster; in fact my testing indicates they are ~75% and ~90% faster, respectively. This post is just intended to be some sort functions that I hope are interesting and...
-
Posted Three Sort Functions to Thoughts::Perl::Random
="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-fareast-font-family:"Times New Roman";mso-hansi-font-family:Calibri; mso-bidi-font-family:Calibri;color:#44546A;mso-themecolor…
-
Commented on Swapping Things
You guessed it. I have found that it is much easier to create a post externally and copy it into the RTF editor. It turns out that Movable Type and I are only marginally compatible....
-
Posted Swapping Things to Thoughts::Perl::Random
="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-fareast-font-family:"Times New Roman";mso-hansi-font-family:Calibri; mso-bidi-font-family:Calibri;color:#44546A;mso-themecolor…
-
Commented on qk: Quote Membership Hash Keys
I'm not a fan of either proposal... because of how little they offer In my opinion, qk() offers clearer code, and that's not a little thing. I will not comment further on qa() since it isn't my idea, although I...
-
Commented on qk: Quote Membership Hash Keys
I thought about it, but "qk{}" implies that qk() returns a hash REF. As proposed above, at least, it returns a plain hash. If you think qk() should return a hash ref instead, that's a different discussion, but I think...
-
Commented on qk: Quote Membership Hash Keys
I assume that qa() and qk() would allow to use any character or delimiter pair, just as q(), qq(), and qw() do. That said, I would agree that qa[] is the most natural way of using qa()....
-
Posted qk: Quote Membership Hash Keys to Thoughts::Perl::Random
="font-size:12.0pt;line-height:107%;mso-ascii-font-family: Calibri;mso-fareast-font-family:"Times New Roman";mso-hansi-font-family:Calibri; m…
-
Posted Symbolic xor to Thoughts::Perl::Random
="font-size:12.0pt;mso-ascii-font-family:Calibri; mso-fareast-font-famil…
Comment Threads
- Toby Inkster commented on qk: Quote Membership Hash Keys
-
Zoffix Znet commented on
Something New Every Day
Note that in Perl 6, apostropes are valid parts of identifiers (with some restrictions
on their placement), so the issue that bit OP in Perl 6 complains about
undeclared variable `$user's` and uses Levenshtein distance to figure out that user might have meant the `$user` variable and suggests that. -
Matthew Persico commented on
Something New Every Day
There's something to be said for braces whenever a variable bumps up against anything that !~ m/\s/:
print "${user}'s crontab is missing!\n"
-
domm commented on
Something New Every Day
The JAPH in my .sig is based on this feature:
for(ref bless{},just'another'perl'hacker){s-:+-$"-g&&print$_.$/}
-
Randal L. Schwartz commented on
Something New Every Day
Clever!
About 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.