CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Need a Custom or Prewritten Perl Program?: I need a program that...:
Program to convert Numeric text file to Packed decimal file

 



aloktiwary
New User

May 20, 2009, 6:45 AM

Post #1 of 4 (3126 views)
Program to convert Numeric text file to Packed decimal file Can't Post

Is there any way to convert numeric values txt file to PACKED DECIMAL File.

Please help!

Regards,

Alok


KevinR
Veteran


May 20, 2009, 1:19 PM

Post #2 of 4 (3124 views)
Re: [aloktiwary] Program to convert Numeric text file to Packed decimal file [In reply to] Can't Post

look into the pack() function. Here is a link to a good tutorial:

http://perldoc.perl.org/perlpacktut.html
-------------------------------------------------


aloktiwary
New User

May 21, 2009, 6:29 AM

Post #3 of 4 (3110 views)
Re: [KevinR] Program to convert Numeric text file to Packed decimal file [In reply to] Can't Post

Thanks a lot but I am new to perl if you can provide me a small sample code it will be of great help.

Thanks,

Alok


KevinR
Veteran


May 21, 2009, 10:48 AM

Post #4 of 4 (3106 views)
Re: [aloktiwary] Program to convert Numeric text file to Packed decimal file [In reply to] Can't Post

I could read the documentation, try a few things and maybe figure it out, but I think you could do the same thing. So read the documentation, try a few things and see if you get it or not. Personally I don't even know what a "packed decimal file" is. But pack() is used to convert one thing into another thing so that is the place to start looking. Or ask on www.perlmonks.com and maybe someone there will already know how to do what you are asking.
-------------------------------------------------

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives