| |
| |
| |
|
Comments:
<0> PerlNewbie, you still there? <1> yeah think he is <1> topmach <0> what? <1> well i got a perl program thats not working fully <1> What needs to be done is filter out text from a file and put the filterd text in a text
<0> ok <1> basicly i need A-Z a-z 0-9 i got base of it <0> ok... <1> http://www.rafb.net/paste/results/8QdsVy25.html <1> but none of them have worked <1> i dont know what im doing wrong <0> you should have a loop like .. while (my $record = <FH>) { ... } <0> wha tis it you are trying to do exactly? <1> well get all text from a say a.exe and copy it also filtering all the non standard acsii <1> ;t) stuff like that <1> and then put that to like edited.txt <2> Sorry...I was out helping the old man <2> I see that the filter still isn't working for you, eh? <2> Bummer.. <3> Does the ^control notation work in perl? <3> e.g. "^C" eq the ctrl+C character. <2> \cC control character (here, control-C) <2> I found that here ->http://practicalperl.com/slides/L01/slides.html <4> i do believe litereal control characters should work in regex <1> any one here <1> ? <3> This is allowable: ($first,$rest)=$rest=~/^(.)(.*)/; ?
<1> hey dark <1> is that for me ? <3> It was a question to the #. <3> $event->{args} is a referenced array. How do I put it into a normal array in a sub? <5> @x = @{$event->{args}}; maybe? <3> You'd think so but that doesn't seem to be working. <5> define "doesn't seem to be working" <3> It's such an obvious thing yet I cannot find any reference to it on the net :( <3> @x is empty. <3> Definate has elements in $event->{args} <5> what does print $event->{args} show? <5> it should be something like ARRAY(0xXXXXX) <3> Yes. <3> I've got a data dumper $event and it shows the {args} array as contianing the elements that it should. <5> perl -le'$foo = ["a", "b"]; @fo=@{$foo}; print "@fo"' a b <5> works for me(tm) <3> yeah but that's not referenced. <3> http://pastebin.com/741539 if you'd like to take a look <3> It does work, six, I just made a typo :/ <1> hey guys i got a question you know how to filter text from input eq. i input letters a-z and 0-9 and how would i get rid of the <3> $Text=$_=~s///g; <3> or $Text=$_=~s/\W//g; <1> thanks mate
Return to
#perl or Go to some related
logs:
#chat-world didi ke sath #php #chat-world #php newsdeamon coupon windows equivalent to tail
#worldchat pinot gigior #chat-world
|
|