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

Hey!! I'm really sorry, I feel ashamed. I will try and see why this is happening!

I think I know why and it might be simple.


Comment on Re^2: perlmonksflair.com : get your perlmonks flair!
Re^3: perlmonksflair.com : get your perlmonks flair!
by Your Mother (Canon) on Aug 11, 2013 at 23:27 UTC

    Spaces in usernames, like Your Mother, also don't work: 404. :P And 500s are pretty easy to generate. Fun though. So, nice going. If you had it on github, you'd probably already have the patches you need in pending pull requests.

      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.

        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)

      This is also fixed. Spaces, hyphens and dots are all ok.