#perl - Tue 8 May 2007 between 10:10 and 10:17



navikcan I priv you?
dunstabuloswhat is wrong with this: print join (@cleanrow,',');?
f00li5hnavik: i'd rather not
navikok
f00li5hthis way everyone can help ypou
navikwell
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 ;)
naviki'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?
f00li5hnavik: SHOW US 'YER CODE! read the /topic then use the fine paste bot listed therein
navikthey 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
navikf00li5h: 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.
f00li5hnavik: use warnings; use strict
navikf00li5h: I don't know any of that, maybe I should just try do a bash script or something.
eMishWith -l, I do not need to chomp input lines, correct ?
f00li5hnavik: bash scripts are hell to manipulate text in
navikwell, I don't know much perl as you can tell :)
f00li5heMish: you need to chomp them if you wan tto get rid of the new line
navik: but string manipulation in bash is so painful
navikit would have taken me less time to make something in c++ to parse this stuff.
f00li5hnavik: so so painful
navikthat's why I'm here asking, if there are any quick ways in perl
eMishf00li5h, i run this and $_ does not have \n already ? echo aaa | perl -n -l -e 'print "<<<$_>>>\n";'
f00li5hnavik: i9f(/Depends On:(.*)$/ ){ $1 now contains everything after the : }
eMishprints <<<aaa>>>
seems to me -l chomps all input lines automatically ?
f00li5heMish: perhpas -l is doing the chomping
eMish: if you read with <>, the \n will stay there
and by \n i mean $/
eMishyou are wrong
f00li5heMish: aaa has no \n in it at all
so chomping it will do no dammage
rindolfeMish: hi.

Page: 5 12 19 26 33 40 47 54 61 68 75 82 89 96 103 

IrcArchive