Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Replacing with two digits with pipe

by venkatperl55 (Initiate)
on Feb 20, 2010 at 11:16 UTC ( #824359=perlquestion: print w/replies, xml ) Need Help??

venkatperl55 has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: Replacing with two digits with pipe
by ramlight (Friar) on Feb 20, 2010 at 11:41 UTC
    For this problem, you might want to look at the functions split, substr, and join.
Re: Replacing with two digits with pipe
by zentara (Archbishop) on Feb 20, 2010 at 11:59 UTC
    A reply falls below the community's threshold of quality. You may see it by logging in.
Re: Replacing with two digits with pipe
by 7stud (Deacon) on Feb 20, 2010 at 12:35 UTC
    Ahh. You want to hire a programmer. Ok, send $200 to my Paypal account, and then I'll get started.
      I'll bid $100. I'm hungry.

        I bid $50. I live in Detroit, and I'm really, really hungry.

Re: Replacing with two digits with pipe
by ikegami (Patriarch) on Feb 20, 2010 at 18:48 UTC
    Read and parse each row using Text::CSV_XS or whatever, then split the field as follows, then reassemble and output the row using the mentioned module or whatever.
    splice(@fields, 15, 1, split(//, $fields[15]));

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://824359]
Approved by planetscape
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2022-09-25 12:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer my indexes to start at:




    Results (116 votes). Check out past polls.

    Notices?