Tech Recorder
2007/03/08
my $line_old = $_; my $line = $line_old; my @lines = split (/,/ , $line); foreach my $item (@lines) { do something } $line = join ("," , @lines); ####split does not take the trailing empty element if ($old_line =~ /.*(,+)$/) { $line .= $1; }
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment