Re: do problem

2004-05-03 Thread Jan Eden
Daniel, Daniel Staal wrote on 29.04.2004: >--As of Thursday, April 29, 2004 10:43 AM +0200, Jan Eden is alleged >to have said: > >>I have a piece of HTML code containing two Perl variable names, >>which is to be used in 6 scripts. So I tried to put it into a >>separate file to be executed with "d

Re: Using variables in a regex

2004-05-03 Thread John W. Krahn
Kevin Zembower wrote: > > I'm trying to analyze web logs records which look like this: > > 2004-03-28 00:38:31 d7.facsmf.utexas.edu - W3SVC1 DB db.jhuccp.org GET > /dbtw-wpd/exec/dbtwpcgi.exe > XC=%2Fdbtw-wpd%2Fexec%2Fdbtwpcgi.exe&BU=http%3A%2F%2Fdb.jhuccp.org%2Fpopinform%2Fbasic.html&QB0=AND&Q

RE: Extracting number from string

2004-05-03 Thread Wagner, David --- Senior Programmer Analyst --- WGO
William Black wrote: > Hello All, > > I need a regular expression to extract only the number from the below > string. How is this done? > > x=G1234v00 the number in $1 if ( /^.(\d+)/ ) { # you have a number # now if always a G then cyou could change to ^G(\d+)

Re: Extracting number from string

2004-05-03 Thread WilliamGunther
In a message dated 5/3/2004 2:58:40 PM Eastern Daylight Time, [EMAIL PROTECTED] writes: >Hello All, > >I need a regular expression to extract only the number from the below >string. How is this done? > >x=G1234v00 > >Result=1234 > >William Black print 'G1234v00' =~ /(\d+)/; -will http://www.w

re: Extracting number from string

2004-05-03 Thread William Black
Hello All, I need a regular expression to extract only the number from the below string. How is this done? x=G1234v00 Result=1234 William Black _ Stop worrying about overloading your inbox - get MSN Hotmail Extra Storage! http:

RE: installing perl module without root permission

2004-05-03 Thread West, William M
>gohaku> What if perldoc is not included for some reason? > >All perl distros (except macperl for os 9) in the past eight years >or so have "perldoc". oddly enough- my Knoppix install does not... i'll have to remedy that someday... willy -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additio

Using variables in a regex

2004-05-03 Thread KEVIN ZEMBOWER
I'm trying to analyze web logs records which look like this: 2004-03-28 00:38:31 d7.facsmf.utexas.edu - W3SVC1 DB db.jhuccp.org GET /dbtw-wpd/exec/dbtwpcgi.exe XC=%2Fdbtw-wpd%2Fexec%2Fdbtwpcgi.exe&BU=http%3A%2F%2Fdb.jhuccp.org%2Fpopinform%2Fbasic.html&QB0=AND&QF0=Abstract+%7C+KeywordsMajor+%7C+K

perl.beginners Weekly list FAQ posting

2004-05-03 Thread casey
NAME beginners-faq - FAQ for the beginners mailing list 1 - Administriva 1.1 - I'm not subscribed - how do I subscribe? Send mail to <[EMAIL PROTECTED]> You can also specify your subscription email address by sending email to (assuming [EMAIL PROTECTED] is your email address):

RE: starting perl

2004-05-03 Thread McMahon, Chris
I am a beginner here with learning perl. I have downloaded a perl program that also came with apache and the installer to install t hem. But when I try and run the hello world program in dos it dose not work. I am getting an error that it could not be found. anyone have any idea what I could ha

Web based admin using PERL and CGI

2004-05-03 Thread peery
Hey all, I am thinking I'd like to "browserize" a number of simple functions, please correct me if I understand what I'd need to do. Lets say I want to run a pkginfo command on my web server, and return teh results to a browser, I'd need to call a ksh script from a CGI module? So I'd make a fo

creating a password from a clear text.

2004-05-03 Thread Mehmet Suzen
Hi ALL, it is puzzling. I am trying to generate passwords, but it is not working, it generates but no authetication when I put the string in to postfix db. Any idea. -Mehmet #!/usr/bin/perl -w $pwin=; @pool=(('a'..'z'), ('A'..'Z'),('0'..'9'), ".", "/"); $salt=""; [EMAIL PROTECTED](@pool)].$salt;

Re: Newbie: regular expression

2004-05-03 Thread James Edward Gray II
On May 3, 2004, at 4:58 AM, Traeder, Philipp wrote: You're right - I didn't read the original question closely enough. For the record: If you want to strip trailing newlines, use chomp. If you want to strip newlines anywhere else, use regexes. Or tr/\n//d; James -- To unsubscribe, e-mail: [EMA

Re: file to join

2004-05-03 Thread Jenda Krynicky
From: deny <[EMAIL PROTECTED]> > >You just created the message, you did not send it. > >Add > > $msg->send; > > > right thanks you ,the text of the message is send ,but not as a > attached file only with the text in the body of the mail > > i may send a message with a file attached > >

RE: Newbie: regular expression

2004-05-03 Thread Jose Alves de Castro
On Mon, 2004-05-03 at 10:58, Traeder, Philipp wrote: > For the record: > If you want to strip trailing newlines, use chomp. > If you want to strip newlines anywhere else, use regexes. And, if you want to strip trailing characters (no matter what they are; let's say you know there's always a traili

Re: Newbie: regular expression

2004-05-03 Thread Jose Alves de Castro
On Mon, 2004-05-03 at 11:02, Owen wrote: > What happens if you try s/\\n/HI/ > (untested) That would replace a backslash followed by the 'n' character with "HI". >From the original message: $_="Hi. \n This is test string"; So there is no backslash followed by an 'n' in $_ (actually, there isn'

Re: Newbie: regular expression

2004-05-03 Thread Owen
On Mon, 3 May 2004 15:00:20 +0530 "Durai" <[EMAIL PROTECTED]> wrote: > Hello All, > > I am having the following lines of code to remove "\n" from string. > > $_="Hi. \n This is test string"; > s/ > (\n) > /HI > /xisg; > > print; > > I expected the output like: > > Hi. HI This is test string

RE: Newbie: regular expression

2004-05-03 Thread Traeder, Philipp
> On Mon, 2004-05-03 at 10:46, Traeder, Philipp wrote: > > chomp might be the easiest (and probably fastest) solution. > > True :-) But the '\n' he was looking for was in the middle of the > sentence :-) > > BTW, I kept the trailing 'g' in the substitution just because I didn't > knew what the in

RE: Newbie: regular expression

2004-05-03 Thread Jose Alves de Castro
On Mon, 2004-05-03 at 10:46, Traeder, Philipp wrote: > chomp might be the easiest (and probably fastest) solution. True :-) But the '\n' he was looking for was in the middle of the sentence :-) BTW, I kept the trailing 'g' in the substitution just because I didn't knew what the input text might b

RE: Newbie: regular expression

2004-05-03 Thread Traeder, Philipp
> The problem is that the second part of the substitution (HI) is not > taken as a regex, but as a string, which is to mean that you're trying > to replace "\n" with "HI\n". > > If you were using > > s/ > (\n) > /HI/xisg; > > instead, you wouldn't have that problem. > > > Now that we've been

Re: Newbie: regular expression

2004-05-03 Thread John W. Krahn
Durai wrote: > > Hello All, Hello, > I am having the following lines of code to remove "\n" from string. > > $_="Hi. \n This is test string"; > s/ > (\n) > /HI > /xisg; > > print; > > I expected the output like: > > Hi. HI This is test string > > But I got: > > Hi. HI > This is test str

Re: Newbie: regular expression

2004-05-03 Thread Jose Alves de Castro
Hi. The problem is that the second part of the substitution (HI) is not taken as a regex, but as a string, which is to mean that you're trying to replace "\n" with "HI\n". If you were using s/ (\n) /HI/xisg; instead, you wouldn't have that problem. Now that we've been through the problem, le

Newbie: regular expression

2004-05-03 Thread Durai
Hello All, I am having the following lines of code to remove "\n" from string. $_="Hi. \n This is test string"; s/ (\n) /HI /xisg; print; I expected the output like: Hi. HI This is test string But I got: Hi. HI This is test string Anything wrong? Regs, Durai. --- Outgoing mail is c

How do I best redistribution cpan modules?

2004-05-03 Thread B. Fongo
My program depends on some CPAN modules (e.g. Image::Magick, MD5::Digest) to operate, so I want to distribute it with those modules. How do I best redistribute module? Regard Babs