Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

slanning (5049)

slanning
  (email not shown publicly)
http://search.cpan.org/~slanning/

Scott Lanning is currently working in Amsterdam at a hotel-booking company. The following interviews and commentaries are for entertainment only. The views and opinions expressed therein do not necessarily represent the views of his employer or even himself.
+ -

  Comment: Re:Yes (Score 0) on 2010.06.21 1:27

by slanning on 2010.06.21 1:27 (#72096)
Attached to: UNIX / in Strawberry %INC

I only found a reference to it in perlfaq5. It points out there that DOS does handle forward slashes in place of backslashes (though you have to put quotes around the file name, or it thinks the slash is an option).

C:\Users\slanning>more > foo.txt
hi there
^C

C:\Users\slanning>perl -e "open(F, 'c:/Users/slanning/foo.txt') || die$!; while(<F>){print}"
hi there

C:\Users\slanning>perl -e "open(F, 'c:\Users\slanning\foo.txt') || die $!; while(<F>){print}"
hi there

Read More 4 comments
Comments: 4
+ -

  Comment: inconsistent (Score 0) on 2010.06.20 8:15

by slanning on 2010.06.20 8:15 (#72092)
Attached to: UNIX / in Strawberry %INC

There is

perl -Mstrict -e "print $INC{'strict.pm'}"
C:/strawberry/perl/lib/strict.pm

but

perl -e "($f)=split/;/,$ENV{PATH};print $f"
C:\Windows\system32

Read More 4 comments
Comments: 4
+ -

  Journal: pearls cheaper than Perl? on 2010.03.25 17:09

Journal by slanning on 2010.03.25 17:09
User Journal
According to http://news.discovery.com/tech/artificial-mother-of-pearl.html, the material that makes up pearls can now be made as cheaply as paper. So, the cost of producing Perl is more than producing pearl. (Okay, it probably was even before, but I had to make a pun. I'm sorry...)
Read More 0 comments

+ -

  Comment: Re:And the use of abelist language (Score 0) on 2010.02.20 11:54

by slanning on 2010.02.20 11:54 (#71717)
Attached to: Gamers over 30 and the South Australian elections
At least they're not using abelian language.
Read More 3 comments
Comments: 3
+ -

  Comment: stories (Score 0) on 2010.02.05 2:03

by slanning on 2010.02.05 2:03 (#71620)
Attached to: Kuala Lumpur, Day 0

Today I feel like telling stories

Enjoyed reading it, as always.

Read More 1 comments
Comments: 1
+ -

  Comment: Re:very alpha..... (Score 0) on 2009.11.22 6:58

by slanning on 2009.11.22 6:58 (#71208)
Attached to: blogs.perl.org
Sorry, not sure what I was thinking when I wrote that.
Read More 11 comments
Comments: 11
+ -

  Comment: very alpha..... (Score 0) on 2009.11.20 14:26

by slanning on 2009.11.20 14:26 (#71197)
Attached to: blogs.perl.org

I'm sorry, but how does one work for a year on a website but not get the login working right?

I was a bit interested in it, unlike all the previous "goodbye, cruel use Perl;" attempts, but clicking the button on the signup page I got a "can't fork page" error, then trying to login after a few tries it now says "This account has been disabled. Please see your system administrator for access.". Incredible! Maybe it's just me, but I find this to be a major turnoff...

Read More 11 comments
Comments: 11
+ -

  Comment: comments per useful lines of code (Score 0) on 2009.11.05 14:46

by slanning on 2009.11.05 14:46 (#71047)
Attached to: OOPSLA 2009

"Java has the highest mean of comment lines per source lines at.. one comment line for three source code lines" and "Perl has the lowest mean with.. one comment line for nine source code lines"

And they say that Perl takes 10 times less code to do the same thing, so....

Read More 2 comments
Comments: 2
+ -

  Comment: preference (Score 0) on 2009.10.14 17:24

by slanning on 2009.10.14 17:24 (#70890)
Attached to: Namespace pollution
So everyone should make their modules in this way that you love? ;)
Read More 4 comments
Comments: 4
+ -

  Comment: oh, my (Score 0) on 2009.10.11 16:56

by slanning on 2009.10.11 16:56 (#70845)
Attached to: Perl 5 is Perl 1. And TAP is 22.

And the tests pass. But if I put my @a it fails. (If I put our @a, it passes.)

No test of the numbers returned? :)

Read More 3 comments
Comments: 3
+ -

  Comment: Re:No such thing (Score 0) on 2009.10.10 7:32

Not claiming to be that knowledgeable, but what made me "understand" REST was the book "RESTful Web Services". That in turn cites the original thesis on REST. Some ideas that I took away were:

  • keep a uniform interface, which is what the HTTP methods already give you;
  • give every "resource" in your application a(t least one) URL;
  • avoid keeping application state on the server, for scalability;
  • hyperlinks send the application from state to state on the client side, in other words the current state's "representation" has links from the current state to whatever next states there are in the application (or to other applications, e.g. externally-linking URLs)

The last one is "REpresentational State Transfer".

Read More 4 comments
Comments: 4
+ -

  Comment: regexp? (Score 0) on 2009.10.10 6:18

by slanning on 2009.10.10 6:18 (#70838)
Attached to: regex spelling
At least they don't spell it "regexp?".
Read More 4 comments
Comments: 4
+ -

  Journal: OGRE on 2009.10.05 2:09

Journal by slanning on 2009.10.05 2:09
User Journal

I've recently worked a bit more on Perl bindings for OGRE. You might remember that I was working on this a couple years ago. I updated the bindings to minimally work with the Shoggoth (1.6) API (at least on Ubuntu). It still needs a lot of work.

Read More 1 comments
Comments: 1
+ -

  Comment: who needs books? (Score 0) on 2009.10.01 14:25

by slanning on 2009.10.01 14:25 (#70743)
Attached to: Re: Where are all the Perl books?
scrottie, I don't need any books as long as you keep blogging. :)
Read More 2 comments
Comments: 2
+ -

  Comment: GCC-XML (Score 0) on 2009.09.27 16:46

by slanning on 2009.09.27 16:46 (#70677)
Attached to: Finding uncovered XS functions in Perl bindings
It doesn't work 100% with plain C, but I used GCC-XML a bit with one of my C++ bindings (look in the genscripts directory; they are very hacky, though, and far from comprehensive; a lot of work to do there...). Maybe there is something similar for plain C.
Read More 2 comments
Comments: 2