Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Perl
Perl Misc
[newbie] chomp acting weird (or me not understanding how it works??)
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Hendrik Maryns, post: 4781066"] A. Sinan Unur schreef: Ok, I'll give it a last try. Basically, just taking the first word of each line, and joining them all into a sentence, in the same order. Yes, I read about that and am using it now, thanks. I normally do, but forgot here. I know that, but I didn't see a way to do this _and_ do the other stuff I want to do with the reconstructed sentence afterwards, so I tried it another way. Because of the way I'm reading the file: read a line until you encounter punctuation, which is indicated by "LET" occuring in the line. This _does_ work fine by the way. Ok, and where can I find these guidelines, please? <snipped code> This indeed does exactly what I was looking for! (And you don't even need chomp here ;-) My problem still remains: how can I do this, sentence per sentence (as, in the real DATA, more of those follow each other), and manipulate each line of the data in another way after each sentence. But don't bother answering, I'll try for myself some more. So, thank you, Hendrik PS: the start of my other post was meant ironic, but I suppose your answer was too :-p [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Perl
Perl Misc
[newbie] chomp acting weird (or me not understanding how it works??)
Top