in reply to Re^7: Create output from Perl hash
in thread Create output from Perl hash
Thanks for the explanation. I would like to remove 91 from the beginning of the string e.g. 91436903000 should be 436903000, I am not sure how your code should be modified to allow for the substitution?
if (/\s*CF=([\w-]+?-(?:NONE|\d+))/) { { my $add = $1; $add =~ s/(\d+)$/1\/1\/1\/$1/; $add =~ s/NONE/1\/1\/1\/0/; $line .= ",$add"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^9: Create output from Perl hash
by Laurent_R (Canon) on Feb 14, 2018 at 15:37 UTC | |
|
Re^9: Create output from Perl hash
by gbwien (Sexton) on Feb 14, 2018 at 13:30 UTC | |
by Laurent_R (Canon) on Feb 14, 2018 at 15:45 UTC | |
by gbwien (Sexton) on Feb 19, 2018 at 15:22 UTC | |
by Laurent_R (Canon) on Feb 20, 2018 at 17:52 UTC | |
by gbwien (Sexton) on Feb 23, 2018 at 22:39 UTC | |
|