> -----Original Message----- > From: H.Merijn Brand [mailto:h.m.brand@hccnet.nl] > Sent: Friday, May 14, 2004 2:38 PM > To: perl5-porters@perl.org > Cc: LAUN Wolfgang > Subject: Re: [perl #29553] using 8-bit character in Format triggers error > > > On Thu 13 May 2004 13:51, "Ulrich Windl" (via RT) > <perlbug-followup@perl.org> wrote: > > Perl emits the following error: > > syntax error at /home/windl/src/Perl/p301inq.pl line 100, next char ; > > Unrecognized character \xF6 at /home/windl/src/Perl/p301inq.pl line 100. > > > > for this format: > > > > format STDOUT_TOP = > > ============================================================================= > > Empfangene Nachrichten von IK @<<<<<<<<<<<<<< Seite @## > > ----------------------------------------------------------------------------- > > @header, $% > > Auftragsdatei Fehler Info Dateiname Größe Nummer > > Erstellt Datum gesendet Datum empf. Start Datum empf. Ende > > ============================================================================= > > Though it might be an error, you can easily `work around' the misbehaviour > like thgis: > No need to work around - simply correct the format. The basic rule is: Whenever there is a "picture" line with @- or ^-fields, then the next line must be an argument line supplying the values for the fields. Note that the fourth line ("@header, ... $%") should be moved one up, and instead of "@header" we should perhaps have "$header". (The "@header" makes the format parser look for another line with expressions, and that's why we get the syntax error. Well, after all it's "Perl", not "Pörl" ;-) Kind regards Wolfgang Laun Transport Solutions Division Alcatel Austria AG Phone +43 1 27722 5662 Fax +43 1 27722 1173Thread Previous | Thread Next