RE: Concurrency problem

2003-01-28 Thread NYIMI Jose (BMB)
Your input is appreciated ! José. > -Original Message- > From: david [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 27, 2003 8:16 PM > To: [EMAIL PROTECTED] > Subject: RE: Concurrency problem > > > Nyimi Jose wrote: > > > > > #!/usr/bin/perl -w > > use strict; > > use Proc::Proce

Win32::AdminMisc, schedule task / cron job,

2003-01-28 Thread PRADEEP GOEL
hi I haven't installed anything yet now i have some better idea i am trying to install - without success i downloded from the ftp site- extracted & then giving command C:\Perl\bin>perl ppm install C:\pradeep\net\perl\Bin\AdminMisc_5006/win32-daemon .ppd result

Re: "Can't locate MLDBM.pm ..."

2003-01-28 Thread zentara
On Sun, 26 Jan 2003 16:56:50 -0500, [EMAIL PROTECTED] (Ed Sickafus) wrote: >Since loading MLDBM-2.01, non-root, on an Apache > Cobalt Linux release 5.0 (Pacifica) > Kernel 2.2.16C27_III on an i586 running Perl 5.005_03 >a few weeks ago, I've experienced inconsistent di

Re: [ANN] splits2d.pl

2003-01-28 Thread David Eason
John W. Krahn wrote: > The code looks pretty good over all, just a couple of minor nits. :-) Thank you!! Nits are good. I agree that variables declared "just in time" tend to be more self-documenting. I had some code manageability issues early on, so I was moving quite a few variable definition

HTML::TokeParser and  

2003-01-28 Thread David Eason
I recreated a problem in my program in a small code sample. The code below is giving me the following output at the console and I have no idea why: Output: line 1áline 3 I am seeing a lower case 'a' with an acute accent between 'line 1' and 'line 3'. Any idea what is going on? use strict; use wa

how do i get rid of "<> and , chars ??????

2003-01-28 Thread Swami Anadi
Hi everyone, I am have a probelm and I was hoping you could help. I am reading a line from a file and splitting it into a 2 dimensional array, this is no probs.. BUT i want to get rid of " < > and , out of each line - how do i do this ??? Thanks for your help in advanced Anadi __

help me to replace ascii charecter with some other ascii charector or text

2003-01-28 Thread kasi ramanathen
dear friends i'm in work place and i'm facing a problem of replacing an ascii character with some other ascii character i cut the ascii character from my word document and pasted it in my pear programme but the result is not as i expected. plese give me answer with simple codeing and also say m

RE: Help: trapped in a circle and can't get out.

2003-01-28 Thread Bob Showalter
R. Joseph Newton wrote: > Bob Showalter wrote: > This looks suspicious. I'd say your CPAN config is fubar. > > Hi Bob, > > Maybe I'm spoiled here, as I've always worked in integrated > development environments, and only ventured into Perl; when I > saw a good, transparent, installer available fr

Mysql Connection

2003-01-28 Thread Pankaj Kapare
Hi, I am trying to connect to MYSQL through my perl script.I am using windows 2000 and activeperl. I am using Net::MySQL to connect with database.But it is giving error : Couldn't connect to /tmp/mysql.sock: at E:\PERLTR~1\perl\VALIDA~1.PL line 12 My script is as follows: #!/usr/local/bin/perl pr

RE: Help: trapped in a circle and can't get out.

2003-01-28 Thread wiggins
On Tue, 28 Jan 2003 08:38:25 -0500, Bob Showalter <[EMAIL PROTECTED]> wrote: > R. Joseph Newton wrote: > > Bob Showalter wrote: > > This looks suspicious. I'd say your CPAN config is fubar. > > > > Hi Bob, > > > > Maybe I'm spoiled here, as I've

RE: :SMTP::Multipart Module

2003-01-28 Thread Dan Muey
> > Dan Muey wrote: > > > > > Line 30 in that file is : > > our $VERSION = sprintf("%d.%d", q$Revision: 1.5 $ =~ > > /(\d+)\.(\d+)/);^M > > > > Notice that ^M? that's all over the file. I did > > perl -e '@f = `cat Multipart.pm`;foreach $l(@f) { $l =~ s/\^M//g; > > print $l; }' > Multipart2.

Re: question on copy file from map drive

2003-01-28 Thread R. Joseph Newton
Angela_work wrote: > Hi all, > > I have cgi.pl file in internet server. I would like to copy a log file(read > only file) in J:\ (which I map it to the other server) to my d:\temp folder. > With the following code, I got "can't open input : Permission denied" > message when I open th cgi.pl file t

RE: Email function question

2003-01-28 Thread .IT Workflow - Terry Honeyford
Have you tried put a semi-colon and space on the end of each users name? @names=([EMAIL PROTECTED]; ,[EMAIL PROTECTED]; ,[EMAIL PROTECTED]; ); Terry -Original Message- From: Scott, Deborah [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 22:54 To: [EMAIL PROTECTED] Subject: RE: Email fun

Re: Mysql Connection

2003-01-28 Thread Felix Geerinckx
on Tue, 28 Jan 2003 01:27:15 GMT, [EMAIL PROTECTED] (Pankaj Kapare) wrote: > Hi, > I am trying to connect to MYSQL through my perl script.I am using > windows 2000 and activeperl. I am using Net::MySQL to connect with > database.But it is giving error : Couldn't connect to > /tmp/mysql.sock: at E

RE: how do i get rid of "<> and , chars ??????

2003-01-28 Thread Westgate, Jared
Swami wrote: > I am reading a line from a file and splitting it into > a 2 dimensional array, this is no probs.. > BUT i want to get rid of " < > and , out of each line > - how do i do this ??? You can use the transliteration operator for this. You will have to use the d modifier to tell it

RE: how do i get rid of "<> and , chars ??????

2003-01-28 Thread Dan Muey
> > Swami wrote: > > I am reading a line from a file and splitting it into > > a 2 dimensional array, this is no probs.. > > BUT i want to get rid of " < > and , out of each line > > - how do i do this ??? > > You can use the transliteration operator for this. You will > have to use the

GDBM_File help!

2003-01-28 Thread Marija Silajev
Hi, this is the output of profiler showing the bottle neck of a program. count wall tm cpu time line 14788 0.00 0.0082:sub check_positive{ 14788 0.072474 0.2683:local $a = 0; 14788 0.072475 0.2784:my ($addr) = @_; 14788 0.630970 0.71

RE: :SMTP::Multipart Module

2003-01-28 Thread Dan Muey
Hello, I'm really hitting abrick wall here. Any help or insight would be greatly appreciated. I'm trying to get this Module installed: http://search.cpan.org/author/DROBERTS/Net-SMTP-Multipart-1.5/ [ console output below with step by step actions ] The line in the Multipart.pm file : our $VE

Trouble with hash lookup

2003-01-28 Thread Kipp, James
Should be a simple question. I am trying to only print the element of the hash, that matches the $user string but it prints all of the elements. What am I missing. Thanks $user = "jsmith"; my %lookup = ( 'jsmith' => "jsmith1", 'djones' => "djones2", 'tday' => "tda

RE: Trouble with hash lookup

2003-01-28 Thread Ed Christian
Try replacing "==" with "eq" print "$lookup{$key}\n" if $key eq $user; > -Original Message- > From: Kipp, James [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, January 28, 2003 3:12 PM > To: [EMAIL PROTECTED] > Subject: Trouble with hash lookup > > > Should be a simple question. I am tryin

RE: Trouble with hash lookup

2003-01-28 Thread Kipp, James
thanks, Ed. I am pretty embarresed now :-) > -Original Message- > From: Ed Christian [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, January 28, 2003 3:19 PM > To: Kipp, James; [EMAIL PROTECTED] > Subject: RE: Trouble with hash lookup > > > Try replacing "==" with "eq" > > print "$lookup{$k

RE: Trouble with hash lookup

2003-01-28 Thread Mark Anderson
>Should be a simple question. I am trying to only print the element of the > hash, that matches the $user string but it prints all of the elements. What > am I missing. print "$lookup{$user}\n"; > Thanks > > $user = "jsmith"; > my %lookup = ( > 'jsmith' => "jsmith1", > 'djones'

Re: Trouble with hash lookup

2003-01-28 Thread Rob Dixon
Hi James James Kipp wrote: > Should be a simple question. I am trying to only print the element of > the hash, that matches the $user string but it prints all of the > elements. What am I missing. > Thanks > > $user = "jsmith"; > my %lookup = ( > 'jsmith' => "jsmith1", > 'djones'

RE: Trouble with hash lookup

2003-01-28 Thread Kipp, James
> > > You can just do: > > print "$lookup{$user}\n"; > > HTH, Now am even more embarrassed :) Thanks Rob. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Trouble with hash lookup

2003-01-28 Thread John Baker
On Tue, 28 Jan 2003, Rob Dixon wrote: > > > > $user = "jsmith"; > > my %lookup = ( > > 'jsmith' => "jsmith1", > > 'djones' => "djones2", > > 'tday' => "tday3", > > ); > > > > for my $key (keys %lookup) { > > print "$lookup{$key}\n" if $key == $user; > > } > > Ed is rig

Script...

2003-01-28 Thread Carlos Diaz
Resending this message.. I don't know if it went out last time... Thanks for any help you can offer. ___ Hey guys: I'm still very new to perl and I need to know if this is at all possible... If possible... any ideas on how to go about it... Here is the deal... I would l

Re: Script...

2003-01-28 Thread david
Carlos Diaz wrote: > > I'm still very new to perl and I need to know if this is at all > possible... If possible... any ideas on how to go about it... > > Here is the deal... I would like to build a database with addresses for > specific last names extracted from one of the online directories su

Re: Script...

2003-01-28 Thread John Baker
> > Hey guys: > > I'm still very new to perl and I need to know if this is at all possible... > If possible... any ideas on how to go about it... > Anything's possible with Perl. /me putting away pom-poms...right. > Here is the deal... I would like to build a database with addresses for > specif

Re: help me to replace ascii charecter with some other ascii charector or text

2003-01-28 Thread David Eason
For starters, it looks like most of your replacements should use the tr/// function (also known as y///). http://www.perldoc.com/perl5.8.0/pod/perlop.html For seconds, $ln=~s/'/'/gis; looks like a no-op to me. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [E

RE: Email function question

2003-01-28 Thread Scott, Deborah
>To make this work, you have to specify the list variable ($i): >$file = "/suidbin/sendmail -t"; >$var = "the_file.txt"; > >open(FILE, "$var") || die "cant open text file"; >@file = ; >close(FILE); >foreach $i (@addressee) { > open(MAIL, "|$file $addressee") || die "can't open sendmail"; >

RE: :SMTP::Multipart Module

2003-01-28 Thread Dan Muey
Hello, It seems from what I find on google is that The error : Can't modify subroutine entry in scalar assignment ... Has to do with the version of perl. One person upgraded and that problem went away but a different on ecame up. One message was a module author saying 'Are you using 5.005? Rat

Re: HTML::TokeParser and  

2003-01-28 Thread John W. Krahn
David Eason wrote: > > I recreated a problem in my program in a small code sample. The code below > is giving me the following output at the console and I have no idea why: > > Output: > line 1áline 3 > > I am seeing a lower case 'a' with an acute accent between 'line 1' and 'line > 3'. Any idea

Re: how do i get rid of "<> and , chars ??????

2003-01-28 Thread John W. Krahn
Dan Muey wrote: > > $line =~ s/\<|\>|\,|\"//g; > or > $line =~ s/[<>",]//g; # but you may have to backslash the chars here, not sure > exactly, try it and see. You don't have to backslash these characters as they are not special in regular expressions $line =~ s/<|>|,|"//g; However using tr/<>

Re: help me to replace ascii charecter with some other ascii charector or text

2003-01-28 Thread John W. Krahn
Kasi ramanathen wrote: > > dear friends i'm in work place and i'm facing a problem of replacing an > ascii character with some other ascii character i cut the ascii character > from my word document and pasted it in my pear programme but the result > is not as i expected. plese give me answer with

Re: GDBM_File help!

2003-01-28 Thread John W. Krahn
Marija Silajev wrote: > > Hi, Hello, > this is the output of profiler showing the bottle neck of a program. > > count wall tm cpu time line > 14788 0.00 0.0082:sub check_positive{ > 14788 0.072474 0.2683:local $a = 0;

Re: Trouble with hash lookup

2003-01-28 Thread John W. Krahn
James Kipp wrote: > > Should be a simple question. I am trying to only print the element of the > hash, that matches the $user string but it prints all of the elements. What > am I missing. > Thanks > > $user = "jsmith"; > my %lookup = ( > 'jsmith' => "jsmith1", > 'djones' => "dj

Re: Email function question

2003-01-28 Thread John W. Krahn
Deborah Scott wrote: > > >To make this work, you have to specify the list variable ($i): > > >$file = "/suidbin/sendmail -t"; > >$var = "the_file.txt"; > > > >open(FILE, "$var") || die "cant open text file"; > >@file = ; > >close(FILE); > >foreach $i (@addressee) { > > open(MAIL, "|$file $ad

Re: help me to replace ascii charecter with some other ascii charector or text

2003-01-28 Thread R. Joseph Newton
Kais, Those are not ASCII characters. Nor arem ost of them control characters. They are extended charcters, based on an unsigned, rather than signed, char type. ASCII proper only extends to character 127, the upward-pointing triangle [or the character so rendered by my command environment].