
BWVA
- About: I use Perl.
Recent Actions
-
Commented on When Laziness Isn't
But I'm not clear why plain $ARGV[0] doesn't work there. Your suggested '$$ARGV[0]' doesn't mean the same thing as '@ARGV[0]' in perl directly. Is this a shell thing? (I'm using zsh.)...
-
Commented on When Laziness Isn't
@briandfoy - My shell now sources a separate zsh_aliases file with many dozen aliases - about half of which I've learned from you, like your set of very handy number conversions. I'm sure others collect yours, too. So it seemed...
-
Commented on A deep dive into the Perl type systems
Thanks, Leon. You've done a great service with this - for Perl practitioners as well as skeptics and newcomers. I found one sentence I had to read a few times before understanding, under the "Assignment" heading: "Any scalar can be...
-
Commented on Making a Super Cal if Rage Will Stick Ex Paella Down Us
Hey Saif, Great to know you're in the calendar coders club. I love the non-orthogonal challenges of programming around dates and calendaring. There's only one word for it!...
-
Commented on My 2023 in Perl
Really grateful for your work on Crypt::Passphrase!...
-
Commented on My new modules in 2021
@Leon, Thank you for Crypt::Passphrase! I tried it as soon as I read about it. It's now in use in several production apps I work on, providing a higher comfort level for the future as the encryption carousel keeps spinning......
-
Commented on A Perl 6 API for <holidayapi.com>
Hats off to the P6 devs for enabling this high degree of optimization!...
-
Commented on 6lang: The Naming Discussion Update
What I've noticed: Other than people caught up in the name debate, and people trying to be respectful of those caught up in the debate, lots of writing about the language resorts to the practical abbreviation "P6". This is in...
-
Commented on fatal warnings are a ticking time bomb (via chromatic)
I just noticed that the stub My:Module.pm created by Module::Starter has use warnings FATAL => 'all';...
-
Commented on Looking at DBI Part 17, Wasn't that a Police Album
Thanks for this series. Looks like a typo here: We can then check the statement handle with the 'pg_ready' method which returns 'true' if the query is finished, some thing like this while (!$dbh->pg_ready) { ... Shouldn't that have been...

Comment Threads
-
Renormalist commented on
6lang: The Naming Discussion Update
Show Perl 6 code to a non-Perl programmer and let him/her decide. He/She will definitely answer "it's Perl".
-
JJ Merelo commented on
6lang: The Naming Discussion Update
Could be x-lang (eks-lang). Not so bad, not taken as far as I know.
-
Saif commented on
Making a Super Cal if Rage Will Stick Ex Paella Down Us
It really has been fascinating learning for me. To think that astronomers detected a difference in consecutive years of less that 0.1% centuries ago, and compensate for it is amazing. The maths is the clever bit. I am planning to cut out dependencies like DateTime that do all the work of calculating dates, just so that I can explore how this is actually done.
-
Leon Timmermans commented on
A deep dive into the Perl type systems
That's just an editorial mistake on my end, I've updated it to hopefully be more clear.
And very amusing: I still use a module based on blessing the whole glob/symbol table. It's a very powerful tool for me - typically the hash handles transient data like successive records from an iterator, the array is a buffer for capturing things for use later, the IO is for quick output o…
-
Tony Cook commented on
When Laziness Isn't
The $$ in $$ARGV[0] is being replaced when the alias is created:
tony@venus:~$ alias u="perl -le 'system q(uuidgen) for 1..$$ARGV[0]'"
tony@venus:~$ alias
alias u='perl -le '\''system q(uuidgen) for 1..95370ARGV[0]'\'''
The shell doesn't use @ here so @ARGV[0] works.The single $ARGV is replaced with nothing, so it also doesn't work:
$ alias u="perl -le 'system q(uuidgen) for 1..$ARGV[0]'"
tony@venus:~$ alias
alias u='perl -le '\''system q(uuidgen) for 1..[0]'\'''You can avoid the replacement with bash an…

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.