|
|
|
good chemistry is complicated, and a little bit messy -LW |
|
| PerlMonks |
Re^3: C parsing questionsby GrandFather (Saint) |
| on Nov 28, 2005 at 19:38 UTC ( [id://512449]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
If you change your data to:
You get the following (wrapped to compress):
There appear to be bugs :). Given you are $line =~ s/\n/ /g; and $line =~ s/\s+/ /g; you could just $line =~ s/[\n\s]+/ /g;. <>.The use of $/ is nice. Good to see someone remembering it's there.DWIM is Perl's answer to Gödel
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||