in reply to Re: substitute strings
in thread substitute strings

Thats done -$line =~ s/$/$add_date;/g; What I fail to do is add "0" where there is no value or the value does not match criteria and change column positions. >Enhancing scripts for you is not our job. did I ask that! No. I know what my script should do but I dont know how do to it right now.

Replies are listed 'Best First'.
Re^3: substitute strings
by moritz (Cardinal) on May 12, 2010 at 12:26 UTC
    Do you know how to write a condition with if?

    Do you know how to match a regex without doing a substitution?

    Do you know how to extract certain fields with split?

      nope nope nope All I have is google. And getting syntax right is nightmare.

        Well, there's your problem ... you need to learn the basics of programming first.

        http://perldoc.perl.org/perlsyn.html

        Play around with the lego blocks of syntax to get an idea of how they work and how they can fit together before you try to get fancier.