[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl-AnyPerl] key=value lines hard wrap in input



>From owner-macperl-anyperl  Fri Nov 10 13:13:18 2000

Folks,

I have lines of input that begin with a key= and then the value. Since it
is from a file generated by a reporting system, it has an upper limit of
characters per line and it wraps. I'm wondering if anyone can shed light
on getting the wrapped line to go with the key. I know
there are three ways to set the input record separator, $/ --
newline(default);
""(paragraph mode); and 'undef'(file slurp mode). I'm wondering how
to implement.

In addition, after reading the perldsc.pod, I'm figuring on using a
hash with a subject array (the only field to repeat) as one of its
key=value items.

I'm looking for ideas. Thanks.

Paul
----

Here is some sample input:

SUBJECT = Architectural acoustics.
TITLE = Architectural acoustics design guide / Acentech ; James Cowan,
senior consultant.
IMPRINT = New York : McGraw-Hill, c2000.
CALL # = NA2800 .A683 2000.
OCLC # = 44516671.

SUBJECT = Library science -- Periodicals.
SUBJECT = Library research -- Periodicals.
SUBJECT = Information retrieval -- Periodicals.
SUBJECT = Information services -- Periodicals.
SUBJECT = Electronic information resource literacy -- Periodicals.
TITLE = Library philosophy and practice [computer file].
IMPRINT = Moscow, ID : University of Idaho Library, [1998-
OCLC # = 39973711.

SUBJECT = Electronoic commerce -- Quality control.
SUBJECT = Electronic data interchange -- Quality control.
TITLE = Miller electronic commerce assurance services : electronic
workpapers and reference guide / Karl D. Nagel, Glen L. Gray.
IMPRINT = San Diego : Harcourt Brace Professional Pub., 1999.
CALL # = HF5548.32 .N34 1999.
OCLC # = 40710567.

SUBJECT = Marketing -- Planning -- Comic books, strips, etc.
TITLE = The marketing plan in colour : a pictorial guide for managers /
Malcolm McDonald and Peter Morris.
IMPRINT = Oxford [England] ; Boston : Butterworth-Heinemann, 2000.
CALL # = HF5415.13 .M315 2000.
OCLC # = 44174291.

SUBJECT = Aids to air navigation.
SUBJECT = Guidance systems (Flight).
TITLE = Integrated navigation and guidance systems / Daniel J. Biezad.
IMPRINT = Reston, Va. : American Institute of Aeronautics and
Astronautics,
c1999.
CALL # = TL695 .B54 1999.
OCLC # = 40480160.

==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-anyperl-request@macperl.org