csv translators

Discussion in 'Perl Misc' started by Simon, Aug 23, 2003.

  1. Simon

    Simon Guest

    Whats the best way to use Perl to translate ; delimited fields in one file
    to differing positions in a second file?

    Thanks, S
     
    Simon, Aug 23, 2003
    #1
    1. Advertising

  2. Simon wrote:
    >
    > Whats the best way to use Perl to translate ; delimited fields in one
    > file to differing positions in a second file?


    Use Text::CSV once. Use Text::CSV twice. Tell us what you're actually
    trying to do. Maybe we can help then.

    Steffen
    --
    @n=([283488072,6076],[2105905181,8583184],[1823729722,9282996],[281232,
    1312416],[1823790605,791604],[2104676663,884944]);$b=6;@c=' -/\_|'=~/./g
    ;for(@n){for$n(@$_){map{$h=int$n/$b**$_;$n-=$b**$_*$h;$c[@c]=$h}reverse
    0..11;push@p,map{$c[$_]}@c[reverse$b..$#c];$#c=$b-1}$p[@p]="\n"}print@p;
     
    Steffen Müller, Aug 23, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Michal Mikolajczyk
    Replies:
    0
    Views:
    652
    Michal Mikolajczyk
    Feb 13, 2004
  2. Skip Montanaro
    Replies:
    0
    Views:
    716
    Skip Montanaro
    Feb 13, 2004
  3. Tintin92
    Replies:
    1
    Views:
    1,709
    Andrew Thompson
    Feb 14, 2007
  4. jliu66
    Replies:
    0
    Views:
    511
    jliu66
    Oct 19, 2007
  5. Masao Mutoh
    Replies:
    14
    Views:
    174
    Masao Mutoh
    Dec 20, 2005
Loading...

Share This Page