HOW DO I INSTALL DBI/DBD Modules on Solaris 8

2002-11-15 Thread Charles Idonije
I need help installing DBI & DBD Modules on a server running Solaris 8.There are multiple instances of perl installed on this server. The question is how do I install DBI and DBD to point to a particular instance of perl. For example /apps/bin/perl. Thanks, [EMAIL PROTECTED] -

Reading System-Variables

2002-11-15 Thread Ano Nymus
Hi, the call $name = system"uname -a"; prints the result to STDOUT an not in the variable §name What can i do to get the result into the $name variable? Greetings Willy _ MSN - More useful every day http://www.msn.de -- To

Re: checking for special chars in a string

2002-11-15 Thread Steve Grazzini
Ramprasad A Padmanabhan <[EMAIL PROTECTED]> wrote: > I am sure this must have been asked before But I cant find it > > How do I find if > $str has any special chars ( I mean above 127 in the ascii range ) > > I do not want to do an ord of each character > > like while($str=~/(.)/g) { return('

Re: Write hash of hashes to disk?

2002-11-15 Thread Christopher Solomon
On 15 Nov 2002, Matt Simonsen wrote: > I've tried using DB_File open a hash and write a hash of hashes to disk, > but this failed. I read in Perl Cookbook to "just use it as a regular > hash" but from what I can tell this is not possible when speaking of > complex structures like a hash of hashes.

Write hash of hashes to disk?

2002-11-15 Thread Matt Simonsen
I've tried using DB_File open a hash and write a hash of hashes to disk, but this failed. I read in Perl Cookbook to "just use it as a regular hash" but from what I can tell this is not possible when speaking of complex structures like a hash of hashes. I'm currently dumping this structure to disk

from DOS CHARACTER SET to ANSI CHARACTER SET

2002-11-15 Thread Josimar Nunes de Oliveira
Hello everybody, Does someone know how to easily convert a file from DOS CHARACTER SET to ANSI CHARACTER SET? A line, for example, from: 19/10/2002 03:06 757281 \Apresenta‡äes\Aquarium.zip To: 19/10/2002 03:06 757281 \Apresentações\Aquarium.zip Thanks in advance, Josimar

about updating Perl and keeping the installed modules

2002-11-15 Thread Ernesto Freyre
HI !, Please could someone tell me how I can to update my Perl 5.005 to Perl 5.8 and keeping the modules installed currently? Or none problem related to modules exists atn updating?. Thank you. Ernesto Freyre Área de Operaciones Qnet - Servicios Internet Telf. 241-4122 anexos 2245/2244 www.qnet.

RE: failure notice

2002-11-15 Thread Mac Rost
David, I have changed the code !again! and I am now getting the following error. 400 (Bad Request) Library does not allow method HTTP::Request=HASH(0x8061330) for 'http:' URLs Client-Date: Fri, 15 Nov 2002 20:41:59 GMT === $ua = new LWP::UserAgent; $hr = HTTP::

RE: failure notice

2002-11-15 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Since you have single quotes around the http, then the $appendURL will not expand. Wags ;) -Original Message- From: Mac Rost [mailto:mrost@;travelnow.com] Sent: Friday, November 15, 2002 11:13 To: [EMAIL PROTECTED] Subject: RE: failure notice All: Well I have change some of the

RE: Remotely Change Def GW on Win32

2002-11-15 Thread Charlotte Oliver
> -Original Message- > From: [EMAIL PROTECTED] [mailto:gkhgkh@;attbi.com] > Sent: Friday, November 15, 2002 3:12 PM > To: [EMAIL PROTECTED] > Subject: Remotely Change Def GW on Win32 > > > Does anyone know of a way to change the def gw remotely using perl? > > Thanks in advance. > > --

RE: Remotely Change Def GW on Win32

2002-11-15 Thread Timothy Johnson
You can do it via the registry, but you will need to reboot afterwards... Go to http://www.roth.net/perl/scripts/scripts.asp?Tcp-Ip-Info.pl. The script there should give you an idea of where to find the information. On 2000/XP, it's a bit more complicated than NT. -Original Message- Fr

Remotely Change Def GW on Win32

2002-11-15 Thread gkhgkh
Does anyone know of a way to change the def gw remotely using perl? Thanks in advance. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: failure notice

2002-11-15 Thread Mac Rost
All: Well I have change some of the code and here's the change: == $ua =3D new LWP::UserAgent; $request =3D new HTTP::Request POST = 'http://www.travelnow.com/external/xmlinterface.jsp$appendURL'; $response =3D $ua->request($request); print $r

RE: running a perl script in an other one ?

2002-11-15 Thread Peter Kappus
I often use the quick and dirty approach of just using back-tics to make a system call to my other perl script (or program) and grab its output for my own program like this: #!/usr/bin/perl -w #my first script #initialize a variable to pass $x="foo"; #call 'secondScript.pl' with "foo" as an arg

RE: reg ex question

2002-11-15 Thread Aman Thind
Hi Melanie If it's regex you wanna use, here it is : $fullpath = '/usr/local/home/mel/file.txt'; $fullpath =~ /(.*)\/(.*)\.(.*)/; $path = $1; $file = $2; $ext = $3; -aman. -Original Message- From: Melanie Rouette [mailto:mrouette@;omnisig.com] Sent: Friday, November 15, 2002 8:49 PM To

Re: reg ex question

2002-11-15 Thread Sudarshan Raghavan
On Fri, 15 Nov 2002, Melanie Rouette wrote: > Hi, > I have something like: /usr/local/home/mel/file.txt and I'd like to > strip it so that I can put the path in a variable, the file name in > another one and the extention in a another one as well. How do I do > that, can I do it all in a same e

XML over HTTP in perl

2002-11-15 Thread Mac Rost
List, I have just started with the following code that *should* send and XML over HTTP request and receive the response, but there is a pblm, and I can't for the life of me figure it out. code: #!/usr/bin/perl -w BEGIN { $| = 1; open (STDERR, ">&STDOUT"); print qq

reg ex question

2002-11-15 Thread Melanie Rouette
Hi, I have something like: /usr/local/home/mel/file.txt and I'd like to strip it so that I can put the path in a variable, the file name in another one and the extention in a another one as well. How do I do that, can I do it all in a same expression. Something like, $path = /usr/local/home/me

XML::Parser [was while-problem]

2002-11-15 Thread Sorin Marti
Hi all, I've got the solution which is better tahn the one I've had before: it uses the perl XML:parser #!/usr/bin/perl -w use vars qw(%startsub, %endsub); %startsub = ( "energieverbrauch" => "", "energietraeger" => "", "bezeichnung"=> "", "wert" => "" ); %endsub =

Re: While - Problem

2002-11-15 Thread Sorin Marti
Hello, I am actually reading the o'reilly Perl-book but I just picked out the things I needed. I will follow your advice and read it from the beginning. to the code: at least something happends If I run the script I get following output: wert - 10110 bezeichnung - Hohz, Holzkohle energiev

passing args from one script to another

2002-11-15 Thread PRADEEP GOEL
Hi all I am firing another script script2.pl from script1.pl using system("remsh $remhost -l root \"sh -c /script2.pl 1>&- 2>&- &\"") such as another cripts runs without any user interaction You can take it as " system("remsh $remhost -l root \"sh -c /script2.pl ) simply I want to pass some

Re: HELP: How to translate ASCII-CODE to ASCII-Charakters

2002-11-15 Thread Paul Johnson
Angerstein said: > Hello, > > I have a stupid Problem: > I have to translate a lot of ASCII-Codenumbers (49,54,110) into > Charakters. > > How can I do this? Do I have to make a > > if ($number == 49){ print ']';} > > Or is there an better, faster, smarter way. > > I could not find anything ab

Re: How to translate ASCII-CODE to ASCII-Charakters

2002-11-15 Thread Tanton Gibbs
Use the chr function. print chr( $number ); Tanton - Original Message - From: "Angerstein" <[EMAIL PROTECTED]> To: "Mailinglist Perl Beginners" <[EMAIL PROTECTED]> Sent: Friday, November 15, 2002 6:16 AM Subject: HELP: How to translate ASCII-CODE to ASCII-Charakters > Hello, > > I hav

HELP: How to translate ASCII-CODE to ASCII-Charakters

2002-11-15 Thread Angerstein
Hello, I have a stupid Problem: I have to translate a lot of ASCII-Codenumbers (49,54,110) into Charakters. How can I do this? Do I have to make a if ($number == 49){ print ']';} Or is there an better, faster, smarter way. I could not find anything about that, maybe there is a possibility

Re: While - Problem

2002-11-15 Thread John W. Krahn
Sorin Marti wrote: > > Hi all, Hello, > I,ve got a problem. Following Code reads an Example-String in XML-Style, > filters out the necessary information and writes it in a HASH. Now I > want to read a file and not only one String. I thought that I can just > put a while-loop around my code but t

Re: Net::SMTP

2002-11-15 Thread Tom Allison
Ramprasad A Padmanabhan wrote: There is no problem in this line ( only 'yourdomain' is not a qualified domainname I hope you have taken care ) There must be some other problem in the code or otherwise. If you can change the domainname to your own server and start smtp server in debug mode and c

Re: Net::SMTP

2002-11-15 Thread Tom Allison
Ramprasad A Padmanabhan wrote: There is no problem in this line ( only 'yourdomain' is not a qualified domainname I hope you have taken care ) There must be some other problem in the code or otherwise. If you can change the domainname to your own server and start smtp server in debug mode and c

Re: While - Problem

2002-11-15 Thread Ramprasad A Padmanabhan
hey dont expect to be spoon fed every time ok do this On Fri, 2002-11-15 at 14:32, Sorin Marti wrote: > Thanks for answering... > > Now the Script runs but it does not print anything out > > [print $key." - ".$werte{$key}."\n";] > > The script looks like that now... This should work > >

Re: running a perl script in an other one ?

2002-11-15 Thread debraj bhattacharyya
hi You can definitely connect two perl scripts.One example is passing the scriptname of one program as argument to the second one.But the same thing can be very easily done with the help of functions as in modular programming. do get back if i am not clear thanx raj __

Re: While - Problem

2002-11-15 Thread Sudarshan Raghavan
On Fri, 15 Nov 2002, Ramprasad A Padmanabhan wrote: > This will help you > > open (FILE, " > { > local($/)=undef; > $text = ; This will read the entire file ("text.xml") into $text >} > while($text = ) Making the while here redundant -- To unsubscribe, e-mail: [EMAIL PROT

Re: While - Problem

2002-11-15 Thread Sudarshan Raghavan
On Fri, 15 Nov 2002, Sorin Marti wrote: > Hi all, > > I,ve got a problem. Following Code reads an Example-String in XML-Style, > filters out the necessary information and writes it in a HASH. Now I > want to read a file and not only one String. I thought that I can just > put a while-loop arou

RE: While - Problem

2002-11-15 Thread Beau E. Cox
Hello Sorin - I don't know - I'm too lazy to look hard at your code :) Why don't you load XML::Simple from CPAN - it can be setup to do everthing you want! Aloha => Beau. -Original Message- From: Sorin Marti [mailto:mas@;semafor.ch] Sent: Thursday, November 14, 2002 9:52 PM To: [EMAIL P

Re: mail

2002-11-15 Thread Ramprasad A Padmanabhan
Welcome to this group So you are new to perl too ? If so start at the foundation. For your immediate task use something like Mail::Message Best of Luck Ram Thejaswi narayana wrote: Hello , I am a new member to the group and this is my first mail to the group. I have an assignment i

Re: mail

2002-11-15 Thread Felix Geerinckx
on Fri, 15 Nov 2002 08:23:57 GMT, [EMAIL PROTECTED] (Thejaswi narayana) wrote: > I have an assignment in which > i have to separate mails based on the from field. I am > working on Linux(Redhat 7.2). I want guidance from u > ppl regarding this.I want to know how i can parse a > mail header and de

Re: While - Problem

2002-11-15 Thread Ramprasad A Padmanabhan
This will help you open (FILE, "; } while($text = ) # Parse here Sorin Marti wrote: Hi all, I,ve got a problem. Following Code reads an Example-String in XML-Style, filters out the necessary information and writes it in a HASH. Now I want to read a file and not only one String. I thought

mail

2002-11-15 Thread Thejaswi Narayana
Hello , I am a new member to the group and this is my first mail to the group. I have an assignment in which i have to separate mails based on the from field. I am working on Linux(Redhat 7.2). I want guidance from u ppl regarding this.I want to know how i can parse a mail header and details