Re: changing $/ for recognising empty line

2012-10-29 Thread Jim Gibson
On Oct 29, 2012, at 4:48 AM, Hermann Norpois wrote: > Dear list, > > I would like $/ to recognise empty lines (one empty line). I tried > > $/ = "^\s+$"; > > But this does not work. > Error message: > Unrecognised escape \s passed through at ex2.ol line 5. > I have an input file structured lik

Re: Fast XML parser?

2012-10-29 Thread Octavian Rasnita
From: "Shlomi Fish" On Mon, 29 Oct 2012 10:09:53 +0200 Shlomi Fish wrote: > Hi Octavian, > > On Sun, 28 Oct 2012 17:45:15 +0200 > "Octavian Rasnita" wrote: > > > From: "Shlomi Fish" > > > > Hi Octavian, > > > > > > > > Hi Shlomi, > > > > I tried to use XML::LibXML::Reader which uses the

Re: Fast XML parser?

2012-10-29 Thread Octavian Rasnita
From: "Rob Coops" On Mon, Oct 29, 2012 at 9:18 AM, Shlomi Fish wrote: > On Mon, 29 Oct 2012 10:09:53 +0200 > Shlomi Fish wrote: > > > Hi Octavian, > > On Sun, 28 Oct 2012 17:45:15 +0200 > > "Octavian Rasnita" wrote: > > > From: "Shlomi Fish" > > > Hi Octavian, ... > OK, after a short amount

Re: changing $/ for recognising empty line

2012-10-29 Thread Paul Johnson
On Mon, Oct 29, 2012 at 12:48:33PM +0100, Hermann Norpois wrote: > But still: What is wrong with $/="^\s+$" ? >From perldoc perlvar: Remember: the value of $/ is a string, not a regex. awk has to be better for something. :-) -- Paul Johnson - p...@pjcj.net http://www.pjcj.net -- To unsu

changing $/ for recognising empty line

2012-10-29 Thread Hermann Norpois
Dear list, I would like $/ to recognise empty lines (one empty line). I tried $/ = "^\s+$"; But this does not work. Error message: Unrecognised escape \s passed through at ex2.ol line 5. I have an input file structured like this: # kljhkjhkljhlkjh lk1243, hkjhkjh #ztztzti jj562356, jkjk7kjk M

Re: Fast XML parser?

2012-10-29 Thread Rob Coops
On Mon, Oct 29, 2012 at 9:18 AM, Shlomi Fish wrote: > On Mon, 29 Oct 2012 10:09:53 +0200 > Shlomi Fish wrote: > > > Hi Octavian, > > > > On Sun, 28 Oct 2012 17:45:15 +0200 > > "Octavian Rasnita" wrote: > > > > > From: "Shlomi Fish" > > > > > > Hi Octavian, > > > > > > > > > > > > Hi Shlomi, >

Re: Fast XML parser?

2012-10-29 Thread Shlomi Fish
On Mon, 29 Oct 2012 10:09:53 +0200 Shlomi Fish wrote: > Hi Octavian, > > On Sun, 28 Oct 2012 17:45:15 +0200 > "Octavian Rasnita" wrote: > > > From: "Shlomi Fish" > > > > Hi Octavian, > > > > > > > > Hi Shlomi, > > > > I tried to use XML::LibXML::Reader which uses the pool parser, and I r

Re: Fast XML parser?

2012-10-29 Thread Shlomi Fish
Hi Octavian, On Sun, 28 Oct 2012 17:45:15 +0200 "Octavian Rasnita" wrote: > From: "Shlomi Fish" > > Hi Octavian, > > > > Hi Shlomi, > > I tried to use XML::LibXML::Reader which uses the pool parser, and I read > that: > > "" > However, it is also possible to mix Reader with DOM. At every