in reply to Re^2: printing array using map
in thread printing array using map
use strict; use warnings; print map { chomp; s{^\[([^\]]*)\]}{$1}; qq{$_\n}; } <>;
Running it gives
J:\johngg\Scripts\Monks>type spw683152.dat w1 w2 w3 [t4 w4] w5 w6 J:\johngg\Scripts\Monks>perl spw683152 spw683152.dat w1 w2 w3 t4 w4 w5 w6
I hope this is useful.
Cheers,
JohnGG
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: printing array using map
by GrandFather (Saint) on Apr 27, 2008 at 21:54 UTC | |
by johngg (Canon) on Apr 27, 2008 at 22:01 UTC | |
|
Re^4: printing array using map
by FunkyMonk (Bishop) on Apr 27, 2008 at 22:22 UTC | |
by johngg (Canon) on Apr 28, 2008 at 10:04 UTC |