in reply to modify the contents of an array
I think this will help you
@arr = ('092205', '092305', '092605'); map {s/^(\d{2})(\d{2})(\d{2})/$1\/$2\/$3/} @arr; $" ="\n"; print "@arr";
Prasad
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: modify the contents of an array
by blazar (Canon) on Sep 29, 2005 at 11:34 UTC | |
by Anonymous Monk on Sep 29, 2005 at 12:01 UTC | |
by blazar (Canon) on Sep 29, 2005 at 12:15 UTC | |
by Anonymous Monk on Sep 29, 2005 at 12:54 UTC | |
by Anonymous Monk on Sep 29, 2005 at 13:22 UTC | |
by blazar (Canon) on Sep 29, 2005 at 13:06 UTC | |
| |
by prasadbabu (Prior) on Sep 29, 2005 at 11:46 UTC | |
|
Re^2: modify the contents of an array
by wolfger (Deacon) on Sep 30, 2005 at 12:58 UTC |