Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re: Code style advice: where to put "use" statements?

by talexb (Canon)
on Feb 28, 2008 at 04:11 UTC ( #670818=note: print w/replies, xml ) Need Help??

in reply to Code style advice: where to put "use" statements?

Unless a module really only applies to a very small scope, I put all of my use statements up at the top of the file.

But if there's a piece of Perl code that needs to run as quickly as possible, I'd probably re-consider that approach. :)

Alex / talexb / Toronto

"Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://670818]
Tanktalus is trying to figure out how to get a case-insensitive match between stra▀e and strasse to return true in perl :( fc doesn't seem to do it, either, unless I'm doing it wrong.
[LanX]: ▀,ss
[LanX]: nope
[LanX]: /.*(?:▀|ss).*/
[hippo]: How are you doing the match? Regex, index, eq or something else?
[choroba]: fc $s1 eq fc $s2 I guess
[Tanktalus]: hippo: I don't care, I just want to prove it can match correctly compared to, say, ILIKE / UPPER / LOWER in postgres :)
[LanX]: is there a unicode convention that ▀ is ss ?
[Tanktalus]: LanX: yes :) I haven't tried java, but I have this match working in its bastard cousin, C# :) I just thought perl's unicode support would get me there :)

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (13)
As of 2018-03-21 15:37 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (268 votes). Check out past polls.