Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: getting rid of costly special features

by flexvault (Prior)
on Feb 17, 2013 at 15:46 UTC ( #1019154=note: print w/ replies, xml ) Need Help??


in reply to getting rid of costly special features

Thank you LanX,

++ for your question/comment. I can use this 'feature' now.

I have an application that because of losing leading zeros in strings in Perl, always starts with a '1' followed by the maximum number of zeros for the field number. I have always used "1_000" for small field numbers and "10_000" for 'large' field numbers. Using this 'feature', I can use "A000", or "A0000" to start and if I underestimated the requirement, it will just increment past the theoretical end of "A9..9", giving 25 times more then the 'maximum' original guess.

I also agree that 'strinc' would make sense, but why not add 'strinc' for new requirements, and leave the current implementation intact. Either way, I like the capability :-)

Thanks...Ed

"Well done is better than well said." - Benjamin Franklin


Comment on Re: getting rid of costly special features

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1019154]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (8)
As of 2015-07-07 11:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (88 votes), past polls