Re: separate input
- From: "Paul Lalli" <mritty@xxxxxxxxx>
- Date: 28 Feb 2006 08:12:43 -0800
Cinzia Sala wrote:
Dear all,
I would like to separate my input text DB-file into single files each
containing the information between the two separators "//"
e.g.
dog, cat, home
home, dog, cat
//
pen, pencil, work
//
milk, water, wine
wine, milk, water
//end
I have tried with this:
do {
$/="//\n";
$record= <DBFILE>;
print $record;
} until ($/="//end");
What do you think that line is doing?
I think you meant
until ($record eq '//end');
$record is very different from $/, and = is very different from eq
Paul Lalli
.
- References:
- separate input
- From: Cinzia Sala
- separate input
- Prev by Date: RE: Help: Math::Pari won't install
- Next by Date: Re: Help: Math::Pari won't install
- Previous by thread: separate input
- Next by thread: Re: separate input
- Index(es):
Relevant Pages
|
|