| navik | can I priv you? |
| dunstabulos | what is wrong with this: print join (@cleanrow,',');? |
| f00li5h | navik: i'd rather not |
| navik | ok |
| f00li5h | this way everyone can help ypou |
| navik | well |
| f00li5h | (and i don't have to swtich back and forth to another window) navik: if i'm the only one here, then everyone is helping you ;) |
| navik | i've gotten it to recognize which line to start with and which to halt it with (the depend on and required on" my problem is: How do I get perl to iterate through the words of my selected lines? |
| f00li5h | navik: SHOW US 'YER CODE! read the /topic then use the fine paste bot listed therein |
| navik | they are in $variable = "balalalal" format ah |
| pasteling | "navik" at 85.194.49.109 pasted "dependency extraction (words from list)" (62 lines, 1.8K) at http://sial.org/pbot/24761 |
| navik | f00li5h: http://sial.org/pbot/24761 sry and i know the use of @line and all is useless, since it thinks it is an array of only one element. |
| f00li5h | navik: use warnings; use strict |
| navik | f00li5h: I don't know any of that, maybe I should just try do a bash script or something. |
| eMish | With -l, I do not need to chomp input lines, correct ? |
| f00li5h | navik: bash scripts are hell to manipulate text in |
| navik | well, I don't know much perl as you can tell :) |
| f00li5h | eMish: you need to chomp them if you wan tto get rid of the new line navik: but string manipulation in bash is so painful |
| navik | it would have taken me less time to make something in c++ to parse this stuff. |
| f00li5h | navik: so so painful |
| navik | that's why I'm here asking, if there are any quick ways in perl |
| eMish | f00li5h, i run this and $_ does not have \n already ? echo aaa | perl -n -l -e 'print "<<<$_>>>\n";' |
| f00li5h | navik: i9f(/Depends On:(.*)$/ ){ $1 now contains everything after the : } |
| eMish | prints <<<aaa>>> seems to me -l chomps all input lines automatically ? |
| f00li5h | eMish: perhpas -l is doing the chomping eMish: if you read with <>, the \n will stay there and by \n i mean $/ |
| eMish | you are wrong |
| f00li5h | eMish: aaa has no \n in it at all so chomping it will do no dammage |
| rindolf | eMish: hi. |