Re: XML::DOM::Parser question !

2004-06-07 Thread Wiggins d'Anconia
Please bottom post Ravinder Arepally wrote: I need to change value in file itself. It is not doing that. I am thinking setAttribute should change value of element in file. But my below code is not doing that even though I am using same. My intention is to change value of

Re: XML::Simple

2004-06-07 Thread Wiggins d'Anconia
Please bottom post Mark Goland wrote: Wiggings, I should of been more clear. It does work, but does not produce same output as input. My best guess, it doesn't read in all the tags properly. AttrIndent is just a spacing thing, if if removed still does not work properly. C:\xml_parse>perl -M

RE: XML::DOM::Parser question !

2004-06-07 Thread Ravinder Arepally
I need to change value in file itself. It is not doing that. I am thinking setAttribute should change value of element in file. But my below code is not doing that even though I am using same. My intention is to change value of to

Re: XML::DOM::Parser question !

2004-06-07 Thread Wiggins d'Anconia
Ravinder Arepally wrote: All, I am trying to parse a XML file and change an element value. Below is code of mine where I am doing this. However, setAttribute doesn't work and it doesn't give any error message too. I spent enough time and doesn't make sense to me. I get right value using getAttri

Re: XML::Simple

2004-06-07 Thread Mark Goland
Wiggings, I should of been more clear. It does work, but does not produce same output as input. My best guess, it doesn't read in all the tags properly. AttrIndent is just a spacing thing, if if removed still does not work properly. C:\xml_parse>perl -MXML::Simple -e "print $XML::Simple::VERSI

Re: reading commandline parameters and <>

2004-06-07 Thread Chris Charley
- Original Message - From: "Chris Charley" <[EMAIL PROTECTED]> Newsgroups: perl.beginners To: <[EMAIL PROTECTED]> Sent: Monday, June 07, 2004 2:07 PM Subject: Re: reading commandline parameters and <> > > I am sorry I did not give the real situation before, I want to execute > > this on

Re: if -s clause

2004-06-07 Thread Wiggins d'Anconia
Please bottom post. [EMAIL PROTECTED] wrote: I originally had if ( -s OUT ) { print "file is greater than 0 bytes \n"; } so is this what I want to use? Because I just ran it and it is still not printing this string. Well theoretically that might work since the def in the docs indicates

Re: XML::Simple

2004-06-07 Thread Wiggins d'Anconia
Mark Goland wrote: Hello all, I am trying to play with simple XML. I hace reated a file, and am trying to read it in using XML::Simple and write it out, but with no luck :O(. Can someone point me to the correct error. Thanks in Advance, Mark G CODE: #!PERl -w use XML::Simple; use Data::Dumper;

XML::DOM::Parser question !

2004-06-07 Thread Ravinder Arepally
All, I am trying to parse a XML file and change an element value. Below is code of mine where I am doing this. However, setAttribute doesn't work and it doesn't give any error message too. I spent enough time and doesn't make sense to me. I get right value using getAttribute('value). XML file is

XML::Simple

2004-06-07 Thread Mark Goland
Hello all, I am trying to play with simple XML. I hace reated a file, and am trying to read it in using XML::Simple and write it out, but with no luck :O(. Can someone point me to the correct error. Thanks in Advance, Mark G CODE: #!PERl -w use XML::Simple; use Data::Dumper; $ref = XMLin('.\

Re: how to check for dots in filename

2004-06-07 Thread Wiggins d'Anconia
Roberto Etcheverry wrote: hi all, can anyone tel me how to look for files which conatain dotsin it. i.e file1.txt file2.txt how to check for dots in filename using regular expression. is it correct my $ty=polica.op if($ty =m/ (.*)\.o/) The regular expresion should be /(.*)\.o/. Otherwise you

Re: how to generate array name dynamically

2004-06-07 Thread Randal L. Schwartz
> "Sidharth" == Sidharth <[EMAIL PROTECTED]> writes: Sidharth> i hav a requirement wherein i hav to generate array name Sidharth> dynamically durin recursive function cal how can i do this . That is almost always the sign of a bad design. Please explain more, but I bet you'll need to back u

Re: how to generate array name dynamically

2004-06-07 Thread Roberto Etcheverry
> hi all, > i hav a requirement wherein i hav to generate array name dynamically > durin recursive function cal how can i do this . > Why do you need to generate an array name? Can't you make it work using references? Because this way is, by far, less error-prone. > sid > --

Re: how to check for dots in filename

2004-06-07 Thread Roberto Etcheverry
> hi all, > can anyone tel me how to look for files which conatain dotsin it. > i.e > file1.txt > file2.txt > how to check for dots in filename using regular expression. > is it correct > > my $ty=polica.op > if($ty =m/ (.*)\.o/) The regular expresion should be /(.*)\.o/. Otherwise you'll tr

how to generate array name dynamically

2004-06-07 Thread Sidharth
hi all, i hav a requirement wherein i hav to generate array name dynamically durin recursive function cal how can i do this . sid - "There is nothing in a caterpill

Re: if -s clause

2004-06-07 Thread Wiggins d Anconia
> > was hoping for some add'l assistance. I deleted the bulk of the code out > b/c I cannot get it to send me the results of the if clause. Any ideas? > I did verify the file is being appended to and is greater that 0 bytes. > The if -s on the array is running b/c my else clause is creating the

how to check for dots in filename

2004-06-07 Thread Sidharth
hi all, can anyone tel me how to look for files which conatain dotsin it. i.e file1.txt file2.txt how to check for dots in filename using regular expression. is it correct my $ty=polica.op if($ty =m/ (.*)\.o/) print found; plz reply soon sid --

if -s clause

2004-06-07 Thread DBSMITH
was hoping for some add'l assistance. I deleted the bulk of the code out b/c I cannot get it to send me the results of the if clause. Any ideas? I did verify the file is being appended to and is greater that 0 bytes. The if -s on the array is running b/c my else clause is creating the run file

Re: different versions of same Perl module in different Apache vh osts

2004-06-07 Thread Andrew Gaffney
Bob Showalter wrote: Andrew Gaffney wrote: I will end up having more than 2 vhosts, most of which will need a custom version of this particular module. In that case, I think you'll need to give the modules different names. You could write your handler in such a way that it would recompile the modu

Perl calling Profile

2004-06-07 Thread Anthony J Segelhorst
I have a perl script that I am setting up in crontab to run and when running the script under that user the script runs fun because the .profile runs and the environment variables are set up. I can I easily call the .profile within the script and keep the environment variables throughout the re

Re: reading commandline parameters and <>

2004-06-07 Thread Chris Charley
> I am sorry I did not give the real situation before, I want to execute > this on command line like > > perl -pe 's/$ARGV[1]/$ARGV[2]/' filename OLDSTR NEWSTR > > Is this possible ? > > Thanks > Ram Why not perl -pe 's/OLDSTR/NEWSTR/' filename -- To unsubscribe, e-mail: [EMAIL PROTECTED

RE: different versions of same Perl module in different Apache vh osts

2004-06-07 Thread Bob Showalter
Andrew Gaffney wrote: > I will end up having more than 2 vhosts, most of which will need a > custom version of this particular module. In that case, I think you'll need to give the modules different names. You could write your handler in such a way that it would recompile the module (switching fla

Re: different versions of same Perl module in different Apache vh osts

2004-06-07 Thread Andrew Gaffney
Bob Showalter wrote: Andrew Gaffney wrote: I didn't really know where to post this since it isn't specifically Apache or Perl, so I'm posting herejust because :) I run 2 vhosts under Apache 1.3.29 (needed for mod_perl-1.x which is needed by HTML::Mason) on my Gentoo server. One vhost is the cur

Re: GD::Graph

2004-06-07 Thread Josimar Nunes de Oliveira
Dear Tarun, I just can´t get it. What may be wrong? Microsoft Windows 2000 [Versão 5.00.2195] (C) Copyright 1985-2000 Microsoft Corp. C:\Documents and Settings\Administrador>ppm install GD-Graph Error: Package 'GD-Graph' not found. Please 'search' for it first. C:\Documents and Settings\Adminis

perl.beginners Weekly list FAQ posting

2004-06-07 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: vi editor

2004-06-07 Thread David Storrs
On Sat, Jun 05, 2004 at 04:34:00PM +0100, aditi gupta wrote: > hi, > > vi is used only in unix and linux.which editor can be used in windows and is better > than notepad. > > thanx, > > aditi I'm extremely pleased with Textpad (http://www.textpad.com). Fast start time, easy to use, highly

RE: vi editor (U)

2004-06-07 Thread Meidling, Keith, CTR, ISD
UNCLASSIFIED There's also gvim for windows http://www.vim.org -Original Message- From: John W. Krahn [mailto:[EMAIL PROTECTED] Sent: Saturday, June 05, 2004 5:02 PM To: [EMAIL PROTECTED] Subject: Re: vi editor Aditi gupta wrote: > > hi, Hello, > vi is used only in unix and linux. No

Re: reading commandline parameters and <>

2004-06-07 Thread Jeff 'japhy' Pinyan
On Jun 7, Ramprasad A Padmanabhan said: >open(IN,$ARGV[0]) || die $!; >while(){ > s/$ARGV[1]/$ARGV[2]/; > print; >} >exit 0; Do you come from C? It's hardly ever necessary to exit(0) at the end of a Perl program. >Can I use <> instead on open file and then here Yes, if you first remove $AR

reading commandline parameters and <>

2004-06-07 Thread Ramprasad A Padmanabhan
I am running a perl program that reads a file name from commandline substitutes one string with another displays the output #!/usr/bin/perl open(IN,$ARGV[0]) || die $!; while(){ s/$ARGV[1]/$ARGV[2]/; print; } exit 0; __END__ # I run this using command # perl myscript.pl THEFILE OLDSTR NEWS

RE: different versions of same Perl module in different Apache vh osts

2004-06-07 Thread Bob Showalter
Andrew Gaffney wrote: > I didn't really know where to post this since it isn't specifically > Apache or Perl, so I'm posting herejust because :) > > I run 2 vhosts under Apache 1.3.29 (needed for mod_perl-1.x which is > needed by HTML::Mason) on my Gentoo server. One vhost is the current > pro

RE: DBI

2004-06-07 Thread NYIMI Jose (BMB)
> -Original Message- > From: lohit [mailto:[EMAIL PROTECTED] > Sent: Monday, June 07, 2004 8:58 AM > To: aditi gupta > Cc: [EMAIL PROTECTED] > Subject: Re: DBI > > > on windows... > set HTTP_Proxy= > ppm > search DBI > install DBI Just to complete, in addition to H

Re: GD::Graph

2004-06-07 Thread Tarun Dua
Josimar Nunes De Oliveira wrote: > Does GD::Graph module exist for windows platform? Yes > Where can I find it? ppm install GD-Graph -Tarun -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Possible windows text editor Was: vi editor

2004-06-07 Thread Howard Fuchs
You could also give PerlEdit a try. http://www.indigostar.com/perledit.html Brian Lunergan wrote: I use TextPad. It's shareware. Also has a number of good extensions that can be added for free to enhance its capabilities. Check it out at https://www.textpad.com/index.html. aditi gupta <[EMAIL PR

Re: DBI

2004-06-07 Thread lohit
on windows... set HTTP_Proxy= ppm search DBI install DBI .try help aditi gupta wrote: hi, how to download DBI via PPM? regards, aditi Yahoo! India Matrimony: Find your partner online.