RE: getting the exported variable into a perl variable

2006-08-10 Thread Krishnakumar K P
Perl maintains environment variables in a special hash named %ENV Krishnakumar K.P Sr.Software Engineer Cybage Software Pvt. Ltd (An SEI-CMMI Level 5 Company) West Avenue, Kalyani Nagar Pune - 411 006 Tel: 020- 66041700/ 66044700 extn: 3178 Email: [EMAIL PROTECTED] Website: www.cybage.com ---

getting the exported variable into a perl variable

2006-08-10 Thread kilaru rajeev
Hi, I got a program which will access a exported variable in the shell. Can anyone help me with this?

Re: file read problem.

2006-08-10 Thread john wright
Rob Dixon <[EMAIL PROTECTED]> wrote: john wright wrote: > > Rob Dixon wrote: john wright wrote: >> >> john wright wrote: >> >>> I have a text file,which contains following type of data, >>> >>> my $Data = { >>> 'Book1-6'=> { >>> 'DESCRIPTION' => 'Book1-6', >>>

Re: Multiple matching question

2006-08-10 Thread John W. Krahn
Roman Daszczyszak wrote: > Hello all, Hello, > I have several text files with a few thousand contacts in each, and I > am trying to pull out all the contacts from certain email domains > (about 15 of them). I wrote a script that loops through each file, > then loops through matching each domain

RE: database troubles

2006-08-10 Thread Timothy Johnson
I have no idea what dbmopen is, but I would seriously recommend scrapping all of that and just going with DBI and DBD::ODBC (the DBI driver that allows you to work with ODBC data sources). Here's a small example of how you can work with DBI to get data from a database using a DSN you set up on the

Re: Multiple matching question

2006-08-10 Thread Mumia W.
On 08/10/2006 09:12 AM, Roman Daszczyszak wrote: Hello all, I have several text files with a few thousand contacts in each, and I am trying to pull out all the contacts from certain email domains (about 15 of them). I wrote a script that loops through each file, then loops through matching e

Re: Multiple matching question

2006-08-10 Thread Rob Dixon
Roman Daszczyszak wrote: > > I have several text files with a few thousand contacts in each, and I > am trying to pull out all the contacts from certain email domains > (about 15 of them). I wrote a script that loops through each file, > then loops through matching each domain to the line and wri

database troubles

2006-08-10 Thread hOURS
Hi, I'm new to the list. Thanks everyone for having/doing this. I want to use PERL to work with a database, but I can't seem to get PERL to open the databases on my computer. I've been learning from Paul Hoffman's PERL for Dummies (3rd edition). If I understand the book correctly, th

Multiple matching question

2006-08-10 Thread Roman Daszczyszak
Hello all, I have several text files with a few thousand contacts in each, and I am trying to pull out all the contacts from certain email domains (about 15 of them). I wrote a script that loops through each file, then loops through matching each domain to the line and writes the results to two

Re: file read problem.

2006-08-10 Thread Rob Dixon
john wright wrote: > > Rob Dixon <[EMAIL PROTECTED]> wrote: john wright wrote: >> >> john wright wrote: >> >>> I have a text file,which contains following type of data, >>> >>> my $Data = { >>> 'Book1-6'=> { >>> 'DESCRIPTION' => 'Book1-6', >>> 'URLS1-6' => >>> "ht

Re: file read problem.

2006-08-10 Thread john wright
Hi Rob, Thanks for the reply,but when i am running your code like this perl myprogrem.pl Boo1-6 i am getting following error : "Can't use string ("1") as a HASH ref while "strict refs" in use at myprogrem.pl" at line "foreach my $book (values %$data) " Could you please help me.. Thank

Re: file read problem.

2006-08-10 Thread Rob Dixon
john wright wrote: > > I have a text file,which contains following type of data, > > my $Data = { > 'Book1-6'=> { > 'DESCRIPTION' => 'Book1-6', > 'URLS1-6' => > "http://www.book1.com " . > "http://www.book2.com " . > "http://www.book3.com " . >

Re: Writing to XML using XML::Writer

2006-08-10 Thread Rob Dixon
Nath, Alok (STSD) wrote: > > Robin Norwood wrote: >> >> Nath, Alok (STSD) wrote: >> >>> Hi, >>> Can anybody give me a simple code snippet which writes or >>> modifies this xml ? >>> >>> >>> >>> Tom >>> Aug 2006 >>> >>> >>> Dicken >>>

file read problem.

2006-08-10 Thread john wright
Hi All, I have a text file,which contains following type of data, my $Data = { 'Book1-6'=> { 'DESCRIPTION' => 'Book1-6', 'URLS1-6' => "http://www.book1.com " .

RE: Writing to XML using XML::Writer

2006-08-10 Thread Nath, Alok (STSD)
Hi Robin, yeah I have looked at documentation of XML::Writer. The example explains how to create a new xml file and insert tags there, but does not says how to modify already existing XML. My problem is I want to read and write into the same xml file