in reply to Re^3: Turning a hash into a line of links
in thread Turning a hash into a line of links

I have hardly ever used tr but I bumped into it the other day when looking something else up in the Camel Book. I thought that it could be useful for just the thing you are doing. It would be interesting to benchmark the various ways of counting characters or strings within strings.

Regarding q{} and qq{}, I am from a *nix background and had never had any problem with normal single- and double-quotes. Then I started trying to do one-liners under MS Windoze and struggled. The quoting operators made it all work nicely and since then, to avoid having to think where I am, I have got into the habit of using them all the time. I don't think that there is any particular merit either way other than normal quotes are widely familiar and take fewer keystrokes, quoting operators do the right thing at the DOS prompt.

Cheers,

JohnGG

Replies are listed 'Best First'.
Re^5: Turning a hash into a line of links
by OfficeLinebacker (Chaplain) on Dec 14, 2006 at 01:39 UTC
    That's a great story, and it makes perfect sense. I remember one guy recruiting me to work for a perl company and he mentioned that the code is written in *nix but it has to work in both. If I ever end up interviewing for a job there, I'll already know a good trick for writing portable code. Thanks.

    I like computer programming because it's like Legos for the mind.