Re: Help in Perl

2012-05-07 Thread Goke Aruna
Hello peter, Can you part of the xml file? On 5/5/12, S Peter wrote: > Hi > > I am S. Peter, a beginner in Perl program, working in XML files. I have a > xml files with the following coding. > > "$N$" > > I require a small script in perl to open any xml file and just copy and > write only the co

Re: Help in Perl

2012-05-07 Thread John Mason Jr
On 5/5/2012 5:42 AM, S Peter wrote: Hi I am S. Peter, a beginner in Perl program, working in XML files. I have a xml files with the following coding. "$N$" I require a small script in perl to open any xml file and just copy and write only the command starts with " in a new file. If

Re: Help in Perl

2012-05-07 Thread Kenneth Wolcott
On Sat, May 5, 2012 at 2:42 AM, S Peter wrote: > Hi > > I am S. Peter, a beginner in Perl program, working in XML files. I have a xml > files with the following coding. > > "$N$" > > I require a small script in perl to open any xml file and just copy and write > only the command starts with " in

Help in Perl

2012-05-07 Thread S Peter
Hi   I am S. Peter, a beginner in Perl program, working in XML files. I have a xml files with the following coding.   "$N$"   I require a small script in perl to open any xml file and just copy and write only the command starts with " in a new file.    If a xml file consists of any numbers of  

Re: help in perl script

2010-05-18 Thread Chaitanya Yanamadala
hai shawn yes this is what i am looking for.. glob( '~/.bash_history' ) now the query is working. thank you for ur reply Chaitanya On Tue, May 18, 2010 at 8:18 PM, Shawn H Corey wrote: > On 10-05-18 10:27 AM, Chaitanya Yanamadala wrote: > >> ok is it so.. >> thank you so i think i can do one

Re: help in perl script

2010-05-18 Thread Mohan
hi, system command is only used to run the command and check its success based on the exit status. system ( "history ") == 0 or die " failed"; if you want to capture the output of system command use my $OUTPUT=`history`; print $OUTPUT; you can find more details at perldoc -f system -- Re

Re: help in perl script

2010-05-18 Thread Shawn H Corey
On 10-05-18 10:27 AM, Chaitanya Yanamadala wrote: ok is it so.. thank you so i think i can do one thing like open the file ~/.bash_history and then read the file.. actually i am trying this alternative.. but there is some error.. when i give it like open(DAT, "~/.bash_history")or die("Cannot ope

Re: help in perl script

2010-05-18 Thread Chaitanya Yanamadala
e has no history to report. > > Bob McConnell > > -Original Message- > From: Chaitanya Yanamadala [mailto:dr.virus.in...@gmail.com] > Sent: Tuesday, May 18, 2010 10:20 AM > To: Bob McConnell > Cc: beginners@perl.org > Subject: Re: help in perl script > > dear Bob &g

RE: help in perl script

2010-05-18 Thread Bob McConnell
: beginners@perl.org Subject: Re: help in perl script dear Bob if my current shell does not have any history then how come i am getting the history when i run the same in the terminal?? from where i am getting this history. Chaitanya On Tue, May 18, 2010 at 7:03 PM, Bob McConnell wrote

Re: help in perl script

2010-05-18 Thread Chaitanya Yanamadala
dear Bob if my current shell does not have any history then how come i am getting the history when i run the same in the terminal?? from where i am getting this history. Chaitanya On Tue, May 18, 2010 at 7:03 PM, Bob McConnell wrote: > From: Chaitanya Yanamadala > > > hai > > both of these

RE: help in perl script

2010-05-18 Thread Bob McConnell
From: Chaitanya Yanamadala > hai > both of these didnt help me.. > > @kammen > i can run the history command from the command line.. > but not through the perl script.. > i have tried ur choice but it also didnt work.. > > @shawn > yes it didnt gave me any out put.. > but i require to print th

Re: help in perl script

2010-05-18 Thread Chaitanya Yanamadala
hai both of these didnt help me.. @kammen i can run the history command from the command line.. but not through the perl script.. i have tried ur choice but it also didnt work.. @shawn yes it didnt gave me any out put.. but i require to print the output.. so hw do i do it.. can some body help

Re: help in perl script

2010-05-18 Thread Shawn H Corey
On 10-05-18 08:51 AM, Chaitanya Yanamadala wrote: Can't exec "history": No such file or directory at cmd.pl line 33, line 1. -- so what could be wrong i am running this under the cent os 5.4 and the perl version is 5.8.8 "history" is a built-in shell command for bas

help in perl script

2010-05-18 Thread Chaitanya Yanamadala
hai i am quite new to perl. i know php and mysql. so i require some help from u guys i have written one small script to run the short commands this is the code -- Code -- #!/usr/bin/perl use warnings; # CUSTOM SYSTEM COMMANDS print "Please

Fwd: Require help in perl

2009-03-23 Thread Rajini Naidu
-- Forwarded message -- From: Rajini Naidu Date: Tue, Mar 24, 2009 at 10:12 AM Subject: Re: Require help in perl To: "Chas. Owens" Hi Chas, Thanks for the reply. Please find my answers inlined. > > > > Context : > > > > I am working on

Re: Require help in perl

2009-03-23 Thread Chas. Owens
On Tue, Mar 24, 2009 at 00:01, Rajini Naidu wrote: > Hi, > > Context : > > I am working on displaying load graph for all the days. > > > > I require a perl module which displays, > > all the days of the week and when I click > > On the particular day, it should go to the > > particular load graph.

Require help in perl

2009-03-23 Thread Rajini Naidu
Hi, Context : I am working on displaying load graph for all the days. I require a perl module which displays, all the days of the week and when I click On the particular day, it should go to the particular load graph. Any help is much appreciated. -Rajini

Re: change directory help in perl

2007-06-21 Thread Jeff Pang
Sayed, Irfan (Irfan) 写道: Hi , I have written following script. Problem with the script is that it is not changing the directory as per the foreach loop and because of that cleartool command is failing. can somebody please help. Here is the script. #!/usr/bin/perl -w @arr = `cleartool lsvo

change directory help in perl

2007-06-21 Thread Sayed, Irfan (Irfan)
Hi , I have written following script. Problem with the script is that it is not changing the directory as per the foreach loop and because of that cleartool command is failing. can somebody please help. Here is the script. #!/usr/bin/perl -w @arr = `cleartool lsvob -s`; foreach(@arr) { `cd