Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^4: perlmonksflair.com : get your perlmonks flair!

by gideondsouza (Pilgrim)
on Aug 12, 2013 at 05:02 UTC ( [id://1049054]=note: print w/replies, xml ) Need Help??


in reply to Re^3: perlmonksflair.com : get your perlmonks flair!
in thread perlmonksflair.com : get your perlmonks flair!

I do have it on github: https://github.com/gideondsouza/perlmonksflair

The 404 for hyphens and spaces are just because I don't have them in my route regex. I come from a very different programming background and I'm not fluent enough with regex! But I'll get there.

I shall get to fixing soon. Pull requests would make me ecstatic, it would probably teach me something. My perl isn't still Perlish.

  • Comment on Re^4: perlmonksflair.com : get your perlmonks flair!

Replies are listed 'Best First'.
Re^5: perlmonksflair.com : get your perlmonks flair!
by Happy-the-monk (Canon) on Aug 12, 2013 at 05:44 UTC

    The 404 for hyphens and spaces are just because I don't have them in my route regex.

    change /(\w+)\.jpg to /([\w -]+)\.jpg to add hyphens and spaces.

    Put the "-" last or you must quote it as \- in a character class in a regex.

    See perlre for more.

    Cheers, Sören

    Créateur des bugs mobiles - let loose once, run everywhere.
    (hooked on the Perl Programming language)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1049054]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2024-04-19 09:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found