On Saturday, June 8, 2002, at 04:47 , David T-G wrote: [..] > > The files were written in DOS format (\r\n or, I am more inclined to > think, \n\r) and chomp doesn't work; instead I have to > > ... > while (<>) > { > ... > chop ; chop ; # strip \n\r (no chomp here) > $fullpath = $_ ; # store for later > ... > > which seems incongruous to me, but chomp sure didn't work until I saved a > file in UNIX format and then fed it in --
that is way too weird - since that means that what ever dos app you were using was not complying with the standard to begin with. your chop/chop here puts you in perl of brutally hacking off the last letter of your line.... so why not try http://www.wetware.com/drieux/pbl/RegEx/eolOut.txt I have updated it so that you octal freaks will still feel loved .... remember - cool is hitting ONLY the target you need to hit without having to worry about collateral damage.... [..] ciao drieux --- as for the curly brace crisis AT&T style: <iterative|conditional> { <block> }[ <elseClause> { <block> }]* BSD style <iterative|conditional> { <block> } [<elseClause> { <block> }]* HEATHEN IDOLATORS: <iterative|conditional> { <block> } I can appreciate that you still love your FULL 132 column greybar line printer... but think about what that will look like if you have to do any serious indentation for that branch tree if-then-elsif-....else.... This is not a 'religious issue'.... -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]