Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re: Can you make it nicer?

by hdb (Prior)
on Nov 19, 2013 at 07:21 UTC ( #1063288=note: print w/replies, xml ) Need Help??

in reply to Can you make it nicer?

Similar to BrowserUk's, but using substr instead of regex:

sub id2path_new { my $id = shift or return q(); my( $pat, @d ) = length $id > 6 ? ('%09d',6,3) : ('%06d',4,2); $id = sprintf $pat, $id; substr $id, -$_, 0, '/' for @d; return $id; }

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1063288]
[Marshall]: Darn! I'll look at the thread. Must not be updatinga byte count somewhere. The .exe format is a complex critter.
[stevieb]: that way, it's still "hard coded" into the exe at least, despite not being visible via Properties
[Marshall]: I also looked into PerlApp from Active State, but they don't sell their Dev Kit independent of a very expensive ($1,200) per year license anymore.
[Corion]: I would assume that the PE format hasn't changed that much since the days of yore, but it seems that I would be wrong in that assumption
[Marshall]: When I bought my copy 15+ years ago, it was just a couple hundred bucks.
[Marshall]: I looked at MS specs for PE format and I didn't see any changes in last decade, but evidenly that would be wrong.

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (11)
As of 2016-12-08 18:18 GMT
Find Nodes?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:

    Results (144 votes). Check out past polls.