Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
it printed out:foreach (@record){ my $name; my $id; my $summary; my @data = split('', $_); $name = $data[0]; $id = $data[1]; $summary = $data[2]; format STDOUT = @<<<<<< @<<<<<<<<<<<< @<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< $name, $id, $summary ~~ ^<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< $summary . write; }
it printed twice $name and $summary(only the first line) and the first time $name use the whole line. Please help!!! Thanks!!!Sue Sue 098765598 Background alkgjal ksjhfk kajfhkas Background alkgjal ksjhfk kajfhkas alkdfj lskdfmh duuye ehfu sli leoi end. Jane Jane 098776556 Background lifjsl iejfls iwlfilsi Background lifjsl iejfls iwlfilsi lagkj lsifjlwei ksdjf lkci kjosie ksud last line.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Repeat print problem
by pzbagel (Chaplain) on Apr 28, 2003 at 16:36 UTC | |
by Anonymous Monk on Apr 28, 2003 at 17:47 UTC | |
by pzbagel (Chaplain) on Apr 28, 2003 at 18:20 UTC | |
|
Re: Repeat print problem
by Improv (Pilgrim) on Apr 28, 2003 at 18:08 UTC | |
|
Re: Repeat print problem
by pzbagel (Chaplain) on Apr 28, 2003 at 20:10 UTC | |
|
Re: Repeat print problem
by allyc (Scribe) on Apr 28, 2003 at 22:26 UTC | |
by rob_au (Abbot) on Apr 29, 2003 at 02:21 UTC |