Re: Reegexp removing everything except...

2004-08-26 Thread juman
Thanks this solved it all and I learned a new Perl-thingy ;) /juman On Thu, Aug 26, 2004 at 12:22:04PM +0200, Paul Johnson wrote: > On Thu, Aug 26, 2004 at 12:06:57PM +0200, juman wrote: > > > I have som strings that I want to clean up. They can contain digits, > > some

Reegexp removing everything except...

2004-08-26 Thread juman
I have som strings that I want to clean up. They can contain digits, some special characters (white space etc) and a comma and all I want to keep is the digits and the comma? Any idea how I could do this? /juman -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

Source from another file

2004-07-01 Thread juman
Is it possible to put sub-functions in one file and include them into another Perlscript. For example : file1.pl = Has functions for printing a text file2.pl = Includes the file1.pl and uses the printing function /juman -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

Re: Fuzzy string matching

2004-03-24 Thread juman
Great... got it! :) Now my little script is running... Thanks for the help (again)... /juman On Wed, Mar 24, 2004 at 09:34:58AM -0600, James Edward Gray II wrote: > On Mar 24, 2004, at 4:31 AM, juman wrote: > > >I have two strings I want to compare doing some kind of fuzzy matching?

Fuzzy string matching

2004-03-24 Thread juman
String 1 compared to String 2 gives 40% (four words are the same) String 2 compared to String 1 gives 80% (four word are the same) /juman -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: Replace every character

2004-03-23 Thread juman
That solved my problem :-) Thanks for the help I probably put toomuch thought into solving this simple thing ;-) /juman On Tue, Mar 23, 2004 at 01:29:42PM -0600, James Edward Gray II wrote: > On Mar 23, 2004, at 1:23 PM, juman wrote: > > >Okay thanks :) > > > &g

Re: Replace every character

2004-03-23 Thread juman
t;}' ) { $window->print ("Quiz answer : $reply", MSGLEVEL_NEVER) if ($window); $exit = 0; } For the moment the two strings is represented as this : '$question' == '$quiz_question{"$quizzer"}' I know this doesn

Re: Replace every character

2004-03-23 Thread juman
Hmmm this just seems to return 1. Doesn't m/ just meen to match the expression? /juman On Tue, Mar 23, 2004 at 09:40:42AM -0600, James Edward Gray II wrote: > On Mar 23, 2004, at 9:32 AM, juman wrote: > > >Not sure I understand what you say here... > > > >Should

Re: Replace every character

2004-03-23 Thread juman
Not sure I understand what you say here... Should I do this then? $data = "question?" $newdata = m/\Q$data\E/ Because I couldn't get that to work? /juman On Tue, Mar 23, 2004 at 09:03:15AM -0600, James Edward Gray II wrote: > On Mar 23, 2004, at 8:54 AM, juman wrote: >

Replace every character

2004-03-23 Thread juman
hat would make things easier for me matching them but how do I do this? /juman -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: Splitting html into body and header...

2004-02-25 Thread juman
Okay.. cpan.org here I come :) /juman On Wed, Feb 25, 2004 at 05:47:18PM -0500, Casey West wrote: > HTML::TreeBuilder is a good module to look at. > > Casey West -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl

Splitting html into body and header...

2004-02-25 Thread juman
Does anyoen have a good tip if there is a module or good way to split a html file inte header and body? What I want to do is to combine several htmlfiles into one. And the idea is to remove all headers from all the files and combine the bodys into a big new one with a new header... /juman -- To

Re: Perl or Bash error?

2004-02-25 Thread juman
Thanks for the tips... they solved my problems... /juman On Wed, Feb 25, 2004 at 02:56:48PM +0100, juman wrote: > I'm trying to make perl print out some status info while doing other > things but the actual text isn't shown until a newline character is > passes. > > p

Perl or Bash error?

2004-02-25 Thread juman
I make it print "Before" sleep 5 seconds and then print "After"? Don't know if this has to do with Perl or the Bash shell I'm using though... Cheers, juman -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>