fbristow

- friends
2,203 link karma
388 comment karma
send messageredditor for
what's this?

TROPHY CASE


  • Four-Year Club

    Verified Email

Powder Cake by dubk92in funny

How real people will use Windows 8 by jordtehpwnerin videos

[–]fbristow 0 points1 point ago

The default alt-tab behaviour drove me crazy too, especially because it would be constantly taking me to another window from the same application on a different workspace. You can revert back to the traditional alt-tab behaviour by following the instructions here: http://askubuntu.com/questions/68151/how-do-i-revert-alt-tab-behavior-changed-in-11-10

Would you mind helping a Perl Noob out? by bspridein perl

[–]fbristow 2 points3 points ago

You're right about the constant time lookup with a hash, that's the entire purpose of using a hash. Take a look at Virindi's post to see how you could have used a hash in this situation. You were pretty close to getting it right, I think that trying to make the hash constant lead to some confusion.

If you're dead set on using a constant, check out the use constant perldoc (linked in my post above). Specifically, look at the weekdays example that the authors show, the code they show sort of solves your problem.

Would you mind helping a Perl Noob out? by bspridein perl

[–]fbristow 4 points5 points ago

Ah, constants. :)

Constants work slightly differently than regular variables in perl: you don't have to preface them with a sigil ($).

I think that you are also not creating the data structure that you think you are creating --- you're creating an array of hashes rather than a plain hash.

If you're not trying to count instances of those symbols, then I think you might be able to get away with using a plain array. Take a look at the perldoc for use constant, the page has a nice example of how to use a constant array.

If you are trying to count instances of those symbols, then I think you probably don't want to use a constant.

I hope that helps!

Random PVC pipes in the yard - any clue what they are? by Pepe_Silviain DIY

[–]fbristow 8 points9 points ago

I thought the internet was on top of Big Ben.

Who cares if its in Swedish!? (Regular Ordinary Swedish Meal Time) by cancer_swein videos

[–]fbristow 11 points12 points ago

sorry, this has been archived and can no longer be voted on

It's not in Swedish, it's in Swenglish!

[October] Doctor Who Decal Giveaway by nogbogin doctorwho

[–]fbristow 0 points1 point ago

sorry, this has been archived and can no longer be voted on

Stickers!

Recommendations for instrumental metal by RomanSionisin Metal

[–]fbristow 2 points3 points ago

sorry, this has been archived and can no longer be voted on

... there's a new album? There is! Thanks.

Recommendations for instrumental metal by RomanSionisin Metal

[–]fbristow 22 points23 points ago

sorry, this has been archived and can no longer be voted on

How many folks have seen the BBC Hitchhiker's Guide TV series? by Scary_The_Clownin scifi

[–]fbristow 11 points12 points ago

sorry, this has been archived and can no longer be voted on

Fedora 16 Artboard by jofazepain linux

[–]fbristow 7 points8 points ago

sorry, this has been archived and can no longer be voted on

view more: next