in reply to substitute strings

At the end of the line there should be added 1 more column - todays date "strftime(".%Y%m%d", localtime);" !!!

Then do it!!!

Or is there anything you are having problems with? If yes, what?

At perlmonks we're willing to explain things if you have trouble, and help you to understand Perl and programming. Enhancing scripts for you is not our job.

Perl 6 - links to (nearly) everything that is Perl 6.

Replies are listed 'Best First'.
Re^2: substitute strings
by tannx (Acolyte) on May 12, 2010 at 11:32 UTC
    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.
      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.