Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Number Translation 1

Status
Not open for further replies.

ECartman

Vendor
Jan 22, 2011
260
0
0
IE
Hi Guys,

In need of a little help. I am not a perl guru, just need need a perl string for to translate some numbers.

Basically I will have 4 numbers, XXXX which will need to be prependend by 6 more numbers i.e YYYYYYXXXX

Ys are fixed and Xs will be variables.

Thanks in advance :)
 
Hi

I assume you actually mean digits.

From what you described so far :
Code:
[navy]$number[/navy] [teal]=[/teal] [green][i]'123456'[/i][/green] [teal].[/teal] [navy]$number[/navy][teal];[/teal]
If this is not what you need, provide exact sample input and desired output.


Feherke.
 
Hi feherke,

Basically I am looking for a rule which will do the following

Input: 1234 Output: 9876541234
Input: 1235 Output: 9876541235

My input munber will be changing. Output 987654 will always be the same.

Thanks for your help :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top