Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^4: string functions

by valavanp (Curate)
on Oct 25, 2006 at 10:45 UTC ( #580541=note: print w/replies, xml ) Need Help??


in reply to Re^3: string functions
in thread string functions

basically i have A,B,C,D,E,F,G,H,J values in an array. The factor's letter should depend on that array. The solution which i want for the string: $a="4ABC" or "3C" or "2A2B2C" or "ABC" .. The result of $a should be (A * A * A * A) * (50/100) * B *(55/100) * C * (60/100). This only what i want. The solution given by holli calculates for only certain values. when i tested with some other values it directly prints the string.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://580541]
help
Chatterbox?
Discipulus spent ~3 hours on the roof.. with mediocre results..
[Eily]: what were you trying to do on the roof Discipulus?
[Eily]: if I had done the same here, I'd contain a swimming-pool worth of water by now...
[Discipulus]: i put some shodowing cloth against the killer sun. but i'm still not happy with this
Discipulus roof? or terrace? well is flat anyway, parallel to the ground
[Eily]: upper ground :P
[marto]: erix [id://1193617| pretty much
[marto]: err pretty much

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (9)
As of 2017-06-29 12:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (664 votes). Check out past polls.