develooper Front page | perl.perl5.porters | Postings from May 2004

Re: [perl #29553] using 8-bit character in Format triggers error

Thread Previous | Thread Next
From:
H.Merijn Brand
Date:
May 14, 2004 07:25
Subject:
Re: [perl #29553] using 8-bit character in Format triggers error
Message ID:
20040514162249.A673.H.M.BRAND@hccnet.nl
On Fri 14 May 2004 16:19, LAUN Wolfgang <wolfgang.laun@alcatel.at> wrote:
> > -----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

Why didn't /I/ see that :)

> of "@header" we should perhaps have "$header". (The "@header" makes the

s/we/Ulrich/ ?

> 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" ;-)

LOL!

-- 
H.Merijn Brand        Amsterdam Perl Mongers (http://amsterdam.pm.org/)
using perl-5.6.1, 5.8.3, & 5.9.x, and 809 on  HP-UX 10.20 & 11.00, 11i,
   AIX 4.3, SuSE 9.0, and Win2k.           http://www.cmve.net/~merijn/
http://archives.develooper.com/daily-build@perl.org/   perl-qa@perl.org
send smoke reports to: smokers-reports@perl.org, QA: http://qa.perl.org



Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About