Re: Need help

2015-04-08 Thread Kent Fredric
On 9 April 2015 at 05:40, ayush kabra wrote: > I need little bit help. i need to sort a file according to its 3rd column > and i need the output. can you please help me on this. > Input file we can take anyone either .txt or .xls or .csv. Please look > into this and help me. > If you need somet

Need help

2015-04-08 Thread khamru munnu
sort -k3,3 File1 On Wednesday, April 8, 2015, ayush kabra wrote: > Hi Team, > > I need little bit help. i need to sort a file according to its 3rd column and i need the output. can you please help me on this. > Input file we can take anyone either .txt or .xls or .csv. Please look into this and h

Need help

2015-04-08 Thread ayush kabra
Hi Team, I need little bit help. i need to sort a file according to its 3rd column and i need the output. can you please help me on this. Input file we can take anyone either .txt or .xls or .csv. Please look into this and help me. Regards, Ayush Kabra

Re: Need help with a programming problem

2013-10-05 Thread John SJ Anderson
Please take any further messages in this conversation off list. It's off-topic, off-putting to newcomers, and generally boring and/or aggravating for those of us that have seen it before. Rob: there is no obligation for people to disclose that they wrote the stuff they're advocating. Nobody has a

Re: Need help with a programming problem

2013-10-05 Thread Uri Guttman
On 10/05/2013 04:54 AM, Rob Dixon wrote: Uri, I rarely see File::Slurp recommended other than by yourself. usually it is in the context of a work-around for Perl's lack of support for a regex version of $/. I have also never had occasion to use it myself, despite a working understanding of its

Re: Need help with a programming problem

2013-10-05 Thread Rob Dixon
On 04 Oct 2013 06:33, Shlomi Fish wrote: > On 02 Oct 2013 Uri Guttman wrote: >> On 02 Oct 2013 08:56 PM, Rob Dixon wrote: >>> On 03 Oct 2013 01:39, Uri Guttman wrote: I do recommend you try to use File::Slurp to read in and write out your files. >>> >>> It would help a lot if you dec

Re: Need help with a programming problem

2013-10-03 Thread Shlomi Fish
Hi Uri, On Wed, 02 Oct 2013 23:44:04 -0400 Uri Guttman wrote: > On 10/02/2013 08:56 PM, Rob Dixon wrote: > > On 03/10/2013 01:39, Uri Guttman wrote: > >> > >> I do recommend you try to use File::Slurp to read in and write out your > >> files. > > > > It would help a lot if you declared your inte

Re: Need help with a programming problem

2013-10-02 Thread Charles DeRykus
On Wed, Oct 2, 2013 at 5:10 PM, Peter Holsberg wrote: > Charles DeRykus has written on 10/2/2013 5:49 PM: > > > > Wouldn't a manual edit be easier... or is this a recurrent problem? > > If recurrent, a messy solution may be possible but fragile unless > > the html formatting is invariant - what if

Re: Need help with a programming problem

2013-10-02 Thread John W. Krahn
Shawn H Corey wrote: On Wed, 02 Oct 2013 13:57:36 -0400 Peter Holsberg wrote: I was so upset that I deleted it all! It seems to me that it should be fairly straightforward, but at 79, the old synapses aren't firing quite as well as they used to. Can you get me started? Sure: my @files =

Re: Need help with a programming problem

2013-10-02 Thread John W. Krahn
Peter Holsberg wrote: Let me start over. The file I want to modify has a 6-digit filename and an extension htm. For example, 131002.htm I'm working in Windows, with Strawberry perl, with Randall L. Schwartz's Randal L. Schwartz John -- Any intelligent fool can make things bigger and more

Re: Need help with a programming problem

2013-10-02 Thread Uri Guttman
On 10/02/2013 08:56 PM, Rob Dixon wrote: On 03/10/2013 01:39, Uri Guttman wrote: I do recommend you try to use File::Slurp to read in and write out your files. It would help a lot if you declared your interest in File::Slurp. It is disingenuous to recommend your own modules. i don't see why

Re: Need help with a programming problem

2013-10-02 Thread Uri Guttman
On 10/02/2013 08:44 PM, Peter Holsberg wrote: Uri Guttman has written on 10/2/2013 8:39 PM: use File::Slurp qw( read_dir edit_file ) ; foreach my $file ( grep /^\d{6}\.htm$/, read_dir( $dir ) ) { edit_file { s/foo/bar/g } $file ; } read_dir is also fr

Re: Need help with a programming problem

2013-10-02 Thread Rob Dixon
That should read as follows: use strict; use warnings; use Tie::File; use File::Copy 'copy'; use File::Spec; my $dir = '/path/to/my/directory'; opendir my ($dh), $dir; # Find all files in the directory that match \d{6}\.htm # Die if none or multiple files found # my @files = grep /\A\d{6}\

Re: Need help with a programming problem

2013-10-02 Thread Rob Dixon
On 02/10/2013 18:22, Peter Holsberg wrote: Hi, I have tried to do this for hours but it looks like it is just too difficult for me. I would like a script to open a file in the current directory and edit it. The file's name is \d{6}.htm The script then needs to search for a line that begins:

Re: Need help with a programming problem

2013-10-02 Thread Rob Dixon
On 03/10/2013 01:39, Uri Guttman wrote: I do recommend you try to use File::Slurp to read in and write out your files. It would help a lot if you declared your interest in File::Slurp. It is disingenuous to recommend your own modules. Rob -- To unsubscribe, e-mail: beginners-unsubscr...@pe

Re: Need help with a programming problem

2013-10-02 Thread Rob Dixon
On 03/10/2013 00:19, Shawn H Corey wrote: It would be difficult to get a file with a backslash in it. perl -e "open X, q/>\d{6}.htm/" Rob -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Need help with a programming problem

2013-10-02 Thread Peter Holsberg
Uri Guttman has written on 10/2/2013 8:39 PM: > On 10/02/2013 08:02 PM, Peter Holsberg wrote: >> Let me start over. >> >> The file I want to modify has a 6-digit filename and an extension htm. >> For example, 131002.htm > > i figured that was the case. you should state that in the beginning and

Re: Need help with a programming problem

2013-10-02 Thread Uri Guttman
On 10/02/2013 08:02 PM, Peter Holsberg wrote: Let me start over. The file I want to modify has a 6-digit filename and an extension htm. For example, 131002.htm i figured that was the case. you should state that in the beginning and then say a regex to match that is \d{6}\.htm. then you can u

Re: Need help with a programming problem

2013-10-02 Thread Uri Guttman
On 10/02/2013 07:19 PM, Shawn H Corey wrote: On Wed, 02 Oct 2013 23:43:40 +0100 Rob Dixon wrote: The file's name is \d{6}.htm do you mean that literal name, or do you want to include *.htm files that start with six decimal digits? Jim Gibson has assumed the former, while Shawn, the latter.

Re: Need help with a programming problem

2013-10-02 Thread Peter Holsberg
Let me start over. The file I want to modify has a 6-digit filename and an extension htm. For example, 131002.htm I'm working in Windows, with Strawberry perl, with Randall L. Schwartz's "Learning Perl", copyright 1993. I also have "Perl 5 Pocket Reference", 1998 and copies of "Programming Perl"

Re: Need help with a programming problem

2013-10-02 Thread Brian Fraser
On Wed, Oct 2, 2013 at 8:19 PM, Shawn H Corey wrote: > On Wed, 02 Oct 2013 23:43:40 +0100 > Rob Dixon wrote: > > > > The file's name is \d{6}.htm > > > > do you mean that literal name, or do you want to include *.htm files > > that start with six decimal digits? Jim Gibson has assumed the former

Re: Need help with a programming problem

2013-10-02 Thread Shawn H Corey
On Wed, 02 Oct 2013 23:43:40 +0100 Rob Dixon wrote: > > The file's name is \d{6}.htm > > do you mean that literal name, or do you want to include *.htm files > that start with six decimal digits? Jim Gibson has assumed the former, > while Shawn, the latter. It would be difficult to get a file

Re: Need help with a programming problem

2013-10-02 Thread Brian Fraser
On Wed, Oct 2, 2013 at 4:44 PM, Peter Holsberg wrote: > Shawn H Corey has written on 10/2/2013 2:29 PM: > > On Wed, 02 Oct 2013 13:57:36 -0400 > > Peter Holsberg wrote: > > > >> I was so upset that I deleted it all! It seems to me that > >> it should be fairly straightforward, but at 79, the old

Re: Need help with a programming problem

2013-10-02 Thread Rob Dixon
On 02/10/2013 20:44, Peter Holsberg wrote: Shawn H Corey has written on 10/2/2013 2:29 PM: my @files = grep { /^\d{6}\.htm$/i } glob( '*.htm' ); Well, I'm more of a beginner than I thought I was! The /i to grep is to ignore case? Why are you globbing *.htm? Hi Peter All that Shawn has sh

Re: Need help with a programming problem

2013-10-02 Thread Shawn H Corey
On Wed, 02 Oct 2013 15:44:56 -0400 Peter Holsberg wrote: > Why are you globbing *.htm? See `perldoc -f glob` and `perldoc File::Glob`. -- Don't stop where the ink does. Shawn -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@pe

Re: Need help with a programming problem

2013-10-02 Thread Jim Gibson
On Oct 2, 2013, at 10:22 AM, Peter Holsberg wrote: > Hi, > > I have tried to do this for hours but it looks like it is just too > difficult for me. > > I would like a script to open a file in the current directory and edit > it. The file's name is \d{6}.htm That is an unusual name for a file.

Re: Need help with a programming problem

2013-10-02 Thread Peter Holsberg
Shawn H Corey has written on 10/2/2013 2:29 PM: > On Wed, 02 Oct 2013 13:57:36 -0400 > Peter Holsberg wrote: > >> I was so upset that I deleted it all! It seems to me that >> it should be fairly straightforward, but at 79, the old synapses >> aren't firing quite as well as they used to. >> >> C

Re: Need help with a programming problem

2013-10-02 Thread Shawn H Corey
On Wed, 02 Oct 2013 13:57:36 -0400 Peter Holsberg wrote: > I was so upset that I deleted it all! It seems to me that > it should be fairly straightforward, but at 79, the old synapses > aren't firing quite as well as they used to. > > Can you get me started? Sure: my @files = grep { /^\d{6}\.

Re: Need help with a programming problem

2013-10-02 Thread Peter Holsberg
John SJ Anderson has written on 10/2/2013 1:45 PM: > On Wed, Oct 2, 2013 at 10:22 AM, Peter Holsberg > wrote: >> Hi, >> >> I have tried to do this for hours but it looks like it is just too >> difficult for me. > > You should maybe show the code you have, and we can help you with > that. If you'v

Re: Need help with a programming problem

2013-10-02 Thread John SJ Anderson
On Wed, Oct 2, 2013 at 10:22 AM, Peter Holsberg wrote: > Hi, > > I have tried to do this for hours but it looks like it is just too > difficult for me. You should maybe show the code you have, and we can help you with that. If you've worked for "hours", you must have something to show. j. -- T

Need help with a programming problem

2013-10-02 Thread Peter Holsberg
Hi, I have tried to do this for hours but it looks like it is just too difficult for me. I would like a script to open a file in the current directory and edit it. The file's name is \d{6}.htm The script then needs to search for a line that begins: Finally, it should jump to the line and r

Re: My first perl program after 6 years (need help on Win32::OLE ADSI script)

2012-09-07 Thread Michiel Beijen
Hi Andrew, On Thu, Sep 6, 2012 at 5:23 AM, andrew sison wrote: > I've done some reading and learned that in order to automate that > particular task using perl, I would have to use either Win32::OLE or > Net::LDAP. So I decided to use to former. Actually, I would strongly recommend using Net::LD

Re: My first perl program after 6 years (need help on Win32::OLE ADSI script)

2012-09-06 Thread Shlomi Fish
Hi Andrew, I'm not an OLE or Win32::OLE expert, but see below for a review of your code: On Thu, 6 Sep 2012 11:23:41 +0800 andrew sison wrote: > Hello, > > It has been six years since I have shifted into a new role from being > a systems administrator to being an IT auditor. It's been a while

My first perl program after 6 years (need help on Win32::OLE ADSI script)

2012-09-05 Thread andrew sison
Hello, It has been six years since I have shifted into a new role from being a systems administrator to being an IT auditor. It's been a while since I've written my last perl script. Now I'm back here again to get some help. Basically my job now requires me to conduct audits on the information s

Re: Need help with Win32::IEAutomation

2012-04-21 Thread timothy adigun
Hi, > "alo" == alok wrote: alo>I am trying to use Win32::IEAutomation module to test one web alo>application which is HTTPS based. alo>I am unable to bypass SSL security warning. alo>Can someone help - here's the code I am using. alo>use Win32::IEAutomation; al

Re: Need help with Win32::IEAutomation

2012-04-21 Thread Leo Susanto
Can you use Win32::GuiTest to find the SSL security warning windows (since it's a windows alert) and handle it? On Thu, Apr 19, 2012 at 10:45 AM, alok wrote: > I am trying to use Win32::IEAutomation module to test one web > application which is HTTPS based. > > I am unable to bypass SSL security

Need help with Win32::IEAutomation

2012-04-21 Thread alok
I am trying to use Win32::IEAutomation module to test one web application which is HTTPS based. I am unable to bypass SSL security warning. Can someone help - here's the code I am using. use Win32::IEAutomation; use Win32::IEAutomation::WinClicker; # this will provide methods to interact with dia

Need help in killing a job

2011-10-22 Thread Jag
Can some one help me on this. The routine below works, but kills only the parent job. I want all the jobs spaned by parent job $f to be killed. How to do that ? Thanks in advance. sub run_system_for_some_time { my $f = $_[0]; ## Job to run my $t = $_[1]; ## Max time job can run eval {

RE: Need help getting data from a structure..

2011-09-29 Thread Frank Kleinburg
List, First I would like to thank all who provided input.. With the help of the this list, I was able to figure out what I needed to change to get it all working.. And we have successfully kept VB out (Yippy!).. Now to the solution (note: I have copied the little test code and its output below..

RE: Need help getting data from a structure..

2011-09-29 Thread Weidner, Ron
> Can someone explain how to access $InstDesc?? Also please > explain how I would access (that is read from or write to) > to the $Severity scalar on the bottom structure.. > Thanks in advance.. flk Sure I can help. (or guide you astray) #!/usr/bin/perl use strict; use warnings; my %PlcyActi

Re: Need help getting data from a structure..

2011-09-28 Thread Rob Dixon
On 28/09/2011 15:33, Frank Kleinburg wrote: Hello list, I've been playing with perl going back to the 4.x days, mostly simple scripts to monitor server or application daemons, kick off and manage backups, or read log files.. While some of these programs are fairly complicated, none have more tha

Re: Need help getting data from a structure..

2011-09-28 Thread Brandon McCaig
Frank: CCing the list since you didn't indicate that this was a private message. I'm assuming you meant to "reply to all" (which is probably what you should have done anyway). :) On Wed, Sep 28, 2011 at 12:55 PM, Frank Kleinburg wrote: > Brandon, > > You nailed it.. The one change from "INSTNCE

Re: Need help getting data from a structure..

2011-09-28 Thread Brandon McCaig
On Wed, Sep 28, 2011 at 1:00 PM, lesleyb wrote: > $Policy->{INSTNCE} evaluates to a hash.  Then you ask Perl to access the value > given by the key $CondID in that hash.  $CondID is a key to a reference to > another anonymous hash.  But this time you don't use the '->' to get to the > value of the

Re: Need help getting data from a structure..

2011-09-28 Thread 'lesleyb'
On Wed, Sep 28, 2011 at 09:33:50AM -0500, Frank Kleinburg wrote: > Hello list, > > I've been playing with perl going back to the 4.x days, mostly simple > scripts to monitor server or application daemons, kick off and manage > backups, or read log files.. While some of these programs are fairly >

Re: Need help getting data from a structure..

2011-09-28 Thread Brandon McCaig
On Wed, Sep 28, 2011 at 10:33 AM, Frank Kleinburg wrote: >        $Policy = { >                NAME => $PlcyName, >                DESCRPT => $PlcyDesc, >                INSTNCE => { %Instance }, >        }; > >        %Instance = ( >                $CondID => { >                        DESCRPT =>

Need help getting data from a structure..

2011-09-28 Thread Frank Kleinburg
Hello list, I've been playing with perl going back to the 4.x days, mostly simple scripts to monitor server or application daemons, kick off and manage backups, or read log files.. While some of these programs are fairly complicated, none have more than just tickled the more sophisticated features

Re: Need help for interview

2011-07-10 Thread Chris Nehren
On Fri, Jul 08, 2011 at 15:23:11 +0530 , pawan kumar wrote: > Hi, > I am BE(CSE) fresher.I got a call for interview and openings is in perl.I > know the basics of perl.Please let me know what i have to prepare for > interview.Any link for frequently asked scripts?? > -- > K.V. PAWAN KUMAR Did t

Re: Need help for interview

2011-07-08 Thread Natal Ngétal
2011/7/8 pawan kumar : > I  am BE(CSE) fresher.I got a call for interview and openings is in perl.I > know the basics  of perl.Please let me know what i have to prepare for > interview.Any link for frequently asked scripts?? It's not so easy to reply. It depends of the company and also a lot of poi

Re: Need help for interview

2011-07-08 Thread Rob Coops
On Fri, Jul 8, 2011 at 11:53 AM, pawan kumar wrote: > Hi, > I am BE(CSE) fresher.I got a call for interview and openings is in perl.I > know the basics of perl.Please let me know what i have to prepare for > interview.Any link for frequently asked scripts?? > -- > K.V. PAWAN KUMAR > Good one...

Need help for interview

2011-07-08 Thread pawan kumar
Hi, I am BE(CSE) fresher.I got a call for interview and openings is in perl.I know the basics of perl.Please let me know what i have to prepare for interview.Any link for frequently asked scripts?? -- K.V. PAWAN KUMAR

Re: parsing file need help please

2011-06-08 Thread Jim Gibson
On 6/8/11 Wed Jun 8, 2011 7:48 AM, "Nathalie Conte" scribbled: > HI, > Me again with another parsing script :) > this time, I have this file format, see below, I want to assess if the > genotyping data ( 2 letters at the beginning) are the same in column 1 > or 2, NN should be ignored (as no re

parsing file need help please

2011-06-08 Thread Nathalie Conte
HI, Me again with another parsing script :) this time, I have this file format, see below, I want to assess if the genotyping data ( 2 letters at the beginning) are the same in column 1 or 2, NN should be ignored (as no results provided). I should count as well the number of heterozygous ( when

Re: Need help in fetching file from a folder in server and display.

2011-05-06 Thread Jeff Pang
2011/5/6 meaculpa : > Hi, > > I am developing an automation tool, where users can upload the script > to webserver and they can select any of the uploaded script and > execute the script. > I hope this is not a creacker behavior. But you could upload the files with Net::FTP. If you don't have the

Need help in fetching file from a folder in server and display.

2011-05-06 Thread meaculpa
Hi, I am developing an automation tool, where users can upload the script to webserver and they can select any of the uploaded script and execute the script. I was able to upload the scripts to webserver. But i am not getting any idea to display the scripts from server. Like my requirement is : u

Re: Need help to develop a log file in Perl

2011-04-26 Thread Bob goolsby
Mornin' -- You might check Log::Log4perl on CPAN. It will most likely do what you want might out of the box (the Easy Mode) and will make your life a lot easier by taking care of such 'trivia' as time-stamps, severity-levels, etc. B On Tue, Apr 26, 2011 at 7:49 AM, Khabza Mkhize wrote: > I

Re: Need help to develop a log file in Perl

2011-04-26 Thread Jim Gibson
At 4:49 PM +0200 4/26/11, Khabza Mkhize wrote: I have different Web based scripts when they run update SQL Data Base. Now I need to audit every update sql in my database and store all logs to data file. I dont mind about size of a file since I will create different file foreach item Audited. I wi

Need help to develop a log file in Perl

2011-04-26 Thread Khabza Mkhize
I have different Web based scripts when they run update SQL Data Base. Now I need to audit every update sql in my database and store all logs to data file. I dont mind about size of a file since I will create different file foreach item Audited. I will be writing to a file username, date/time, item

Re: need help designing a database table (or tables) to hold a hash ( %config) and ( %group)

2011-04-22 Thread shawn wilson
first, this isn't the proper forum. second... On Fri, Apr 22, 2011 at 12:47 PM, Agnello George wrote: > Hi All > > i am creating a script for deployment of websites and i need to create >  hash    %config ( which stores a lot of configurations setting for > each type of website )  ... i have been

need help designing a database table (or tables) to hold a hash ( %config) and ( %group)

2011-04-22 Thread Agnello George
Hi All i am creating a script for deployment of websites and i need to create hash%config ( which stores a lot of configurations setting for each type of website ) ... i have been manually eaditing this hash but now the hash has to now be generated from a a database ( mysql ) ... i have

Re: Need Help. .Issue with format statement

2011-03-23 Thread Chas. Owens
On Wed, Mar 23, 2011 at 08:47, Sudhir wrote: > My work environment recently shifted from perl v5.6 to perl v5.10 > > I found one issue with perl format statement in latest version v5.10 > > sample code: > > #!/bin/env perl > use strict; > > &genRep(); > > sub genRep > { > format DURATION_TOP = > @

Need Help. .Issue with format statement

2011-03-23 Thread Sudhir
My work environment recently shifted from perl v5.6 to perl v5.10 I found one issue with perl format statement in latest version v5.10 sample code: #!/bin/env perl use strict; &genRep(); sub genRep { format DURATION_TOP = @<<< "This is TOP" -

Re: Need help in Expect Module

2011-02-03 Thread Zaheer Abbas
Thanks a lot Parag.. That was indeed helpful... On Thu, Jan 20, 2011 at 11:50 AM, Parag Kalra wrote: > Snippet of what I understand from your requirement: > > parag@ubuntu-studio:~$ cat app > #!/bin/bash > if [ $# -ne 1 ] > then >echo -e "Invalid number of input\nUsage: app " >exit 1 > e

RE: Need help with Use of uninitialized value in concatenation (.) or string

2011-01-27 Thread Mark Meyer
Message- > From: CM Analyst [mailto:cmanal...@yahoo.com] > Sent: Thursday, January 27, 2011 6:25 PM > To: Parag Kalra > Cc: beginners@perl.org > Subject: Re: Need help with Use of uninitialized value in concatenation > (.) or string > > This is a sample of the data I a

Re: Need help with Use of uninitialized value in concatenation (.) or string

2011-01-27 Thread CM Analyst
-84f9e0f6609e;|] com.raec.cq.CQCommitException: You wanted to commit a modifyCR based record, but the record was not found in the ClearQuest Database. --- On Thu, 1/27/11, Parag Kalra wrote: From: Parag Kalra Subject: Re: Need help with Use of uninitialized value in concatenation (.) or string To: &qu

Re: Need help with Use of uninitialized value in concatenation (.) or string

2011-01-27 Thread Parag Kalra
When you are already storing the line under $line >>>while(( my $line = )) { Then why are you using $_ >>>my @fields = split '\|', $_; Cheers, Parag On Thu, Jan 27, 2011 at 12:57 PM, CM Analyst wrote: > Hello, > > In the following script my goal is pull the date value each time an error > va

RE: Need help with Use of uninitialized value in concatenation (.) or string

2011-01-27 Thread Mark Meyer
Can you send an example of the data in the log file? tm -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Need help with Use of uninitialized value in concatenation (.) or string

2011-01-27 Thread CM Analyst
Hello, In the following script my goal is pull the date value each time an error value (hardcoded) is found in the specified log file. The script retrieves the error value without a problem but I cannot seem get the date value. Can anyone tell me what I need to do? The error message when I run

Re: Need Help with Perl Mobile Environment

2011-01-25 Thread Rob Coops
On Tue, Jan 25, 2011 at 8:46 AM, Khabza Mkhize wrote: > Can you please help with where to find information about Perl mobile > version > I need to develop Accommodation Booking Website that will run on Smart > phone, Iphone And Blackberry. > > Please send me a links with relevant information > >

Need Help with Perl Mobile Environment

2011-01-24 Thread Khabza Mkhize
Can you please help with where to find information about Perl mobile version I need to develop Accommodation Booking Website that will run on Smart phone, Iphone And Blackberry. Please send me a links with relevant information regards Khabazela Green IT Web http://www.greenitweb.co.za -- To un

Re: Need help in Expect Module

2011-01-19 Thread Parag Kalra
Snippet of what I understand from your requirement: parag@ubuntu-studio:~$ cat app #!/bin/bash if [ $# -ne 1 ] then echo -e "Invalid number of input\nUsage: app " exit 1 else input=$1 fi if [ $input != "register" ] then echo "Invalid choice" exit 1 fi echo "mac" echo "windoze

Need help in Expect Module

2011-01-19 Thread Zaheer
Hi, I am trying to automate a cli application that has multiline output. I want to be able to grep for this multi line output as single string using Expect module and send some keys as input. The cli would be something like bash-3.00# /opt/myapp/bin/app register 1) someservername(1) 2) someoptio

Re: Need help in Learning

2010-11-26 Thread Erez Schatz
On Fri, 26 Nov 2010, Shlomi Fish wrote: Actually I use Alpine, but thanks for that warning, I'll make sure to delete all links from my future posts, because research shown that humans are intelligent enough to follow a thread without being spoonfed through the throat. Hi Erez, next time, pl

Re: Need help in Learning

2010-11-26 Thread Shlomi Fish
Hi Erez, next time, please don't omit the links in your quoted reply, so people will understand what we're talking about. (Unless it was one of GMail.com's many braindamages, in which case I'm sorry for accusing you.) On Friday 26 November 2010 19:12:45 Erez Schatz wrote: > There are many books

Re: Need help in Learning

2010-11-26 Thread Erez Schatz
There are many books available, On Fri, 26 Nov 2010, Shlomi Fish wrote: Hi Uma, welcome to the Perl world. On Thursday 25 November 2010 17:12:49 Umashankar wrote: Hi All, I started my career in a software firm, am working in PERL platform. Can some one guide me by providing some online tuto

Re: Need help in Learning

2010-11-26 Thread Shlomi Fish
Hi Chandrashekar, On Friday 26 November 2010 12:24:49 Chandrashekar Bhat wrote: > Hi Umashankar, > > Below links may be useful. > > http://www.perl.com/pub/2000/10/begperl1.html see the links at the top of that resource for a more up-to-date version or see http://perl-begin.org/ . > > http:/

Re: Need help in Learning

2010-11-26 Thread Shlomi Fish
Hi Uma, welcome to the Perl world. On Thursday 25 November 2010 17:12:49 Umashankar wrote: > Hi All, > > I started my career in a software firm, am working in PERL platform. > Can some one guide me by providing some online tutorials, course > materials links. > We have collected some recommend

Re: Need help in Learning

2010-11-26 Thread Chandrashekar Bhat
Hi Umashankar, Below links may be useful. http://www.perl.com/pub/2000/10/begperl1.html http://computer.howstuffworks.com/perl.htm http://docstore.mik.ua/orelly/perl/prog3/ch01_01.htm http://www.pageresource.com/cgirec/index.html http://perl.plover.com/IAQ/IAQlist.html Thanks, Chandrashekar

Need help in Learning

2010-11-26 Thread Umashankar
Hi All, I started my career in a software firm, am working in PERL platform. Can some one guide me by providing some online tutorials, course materials links. Thanks Much, Uma -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org htt

Re: need help with XML::Simple

2010-11-02 Thread galeb abu-ali
You're right, my path is messed up, I have SAX installed. I tried to move stuff around and when I run the script I get a new error message: Can't locate loadable object for module XML::LibXML in @INC (@INC contains: /usr/local/lib/perl5/site_perl/5.12.2/x86_64-linux-multi /usr/local/lib/perl5/site_

Re: need help with XML::Simple

2010-11-01 Thread shawn wilson
I'm just talking out of my ass here but, it sounds like either you need to install the sax module or your search path is messed up. The former should be easy enough to check, for the later try: perldoc -v And perldoc -f perlrun On Nov 1, 2010 5:04 PM, "galeb abu-ali" wrote: > i downloaded perl-XM

Re: need help with XML::Simple

2010-11-01 Thread galeb abu-ali
i downloaded perl-XML-Parser using yum and am getting an error message: Can't locate XML/LibXML/SAX.pm in @INC (@INC contains: /usr/local/lib/perl5/site_perl/5.12.2/x86_64-linux-multi /usr/local/lib/perl5/site_perl/5.12.2 /usr/local/lib/perl5/5.12.2/x86_64-linux-multi /usr/local/lib/perl5/5.12.2 .

Re: need help with XML::Simple

2010-11-01 Thread galeb abu-ali
I'm running Red Hat Enterprise Linux 5.5, and don't know how to go through the package manager to get this done. Also, is it possible that I didn't place the expat library in the right place? thanks On Mon, Nov 1, 2010 at 2:38 PM, shawn wilson wrote: > What distribution are you running? It migh

Re: need help with XML::Simple

2010-11-01 Thread galeb abu-ali
I do not have ParserDetails.ini in the SAX folder. I just tried installing XML::Parser using CPAN and got a lot of error messages that end with: make[1]: *** [Expat.o] Error 1 make[1]: Leaving directory `/root/.cpan/build/XML-Parser- 2.40-oAWQkX/Expat' make: *** [subdirs] Error 2 CHORNY/XML-Pars

Re: need help with XML::Simple

2010-11-01 Thread Jim Gibson
On 11/1/10 Mon Nov 1, 2010 10:01 AM, "galeb abu-ali" scribbled: > Hi, > > I installed BioPerl on RHEL 5.5 (successfully I hope) and am trying to > execute a xml parser script that uses XML::Simple. I keep getting the > following error message: > > could not find ParserDetails.ini in /usr/loca

need help with XML::Simple

2010-11-01 Thread galeb abu-ali
Hi, I installed BioPerl on RHEL 5.5 (successfully I hope) and am trying to execute a xml parser script that uses XML::Simple. I keep getting the following error message: could not find ParserDetails.ini in /usr/local/lib/perl5/site_ perl/5.12.2/XML/SAX When I try to reinstall XML::Simple using C

Re: Need help in running a script

2010-10-26 Thread Shlomi Fish
Hi Chaitanya, I'm de-CCing the PHP lists because I may not have permissions to post to them. On Tuesday 26 October 2010 07:28:56 Chaitanya Yanamadala wrote: > Hai > > I have developed an application in the perl and it is working fine. Now the > problem is that everytime i need to run the script

Need help in running a script

2010-10-25 Thread Chaitanya Yanamadala
Hai I have developed an application in the perl and it is working fine. Now the problem is that everytime i need to run the script i need to login to the server and do it from there. Is there any possibility that if i send an http request from a browser automatically the script start running in th

Re: Need help with module

2010-08-08 Thread Chas. Owens
On Sun, Aug 8, 2010 at 15:44, Vimal wrote: > Hi Guys, > > I am trying to learn modules in Perl.. I was checking the documentation of > Net::Twitter::Role::OAuth which has text: > > > In a web application mode, you need to save the oauth_token and > oauth_token_secret somewhere when you re

Re: Need help with module

2010-08-08 Thread John W. Krahn
Vimal wrote: Hi Guys, Hello, I am trying to learn modules in Perl.. I was checking the documentation of Net::Twitter::Role::OAuth which has text: In a web application mode, you need to save the oauth_token and oauth_token_secret somewhere when you redirect the user to the OAuth auth

Need help with module

2010-08-08 Thread Vimal
Hi Guys, I am trying to learn modules in Perl.. I was checking the documentation of Net::Twitter::Role::OAuth which has text: In a web application mode, you need to save the oauth_token and oauth_token_secret somewhere when you redirect the user to the OAuth authorization UR

Re: need help

2010-06-22 Thread Chas. Owens
On Tue, Jun 22, 2010 at 00:52, Chaitanya Yanamadala wrote: > i have done it this way, > but i need some other way using a module, snip >> > i have an xml like this >> > >> > hello >> > >> > >> > now i need to add a new attribute to node a. snip Personally, I like [XML::Twig][1]. It is a stream

Re: need help

2010-06-21 Thread Chaitanya Yanamadala
i have done it this way, but i need some other way using a module, $outputfile=shift; open(MYINPUT, "$outputfile"); # open for input my(@lines1) = ; # read file into list my $value=5; foreach $line_new (@lines1) # loop thru list { if ($line_new =~ /a/) { my ($value) = $line_new =~

need help

2010-06-21 Thread Chaitanya Yanamadala
Hai I have a small query regarding to xml reading and writng.. i have an xml like this hello now i need to add a new attribute to node a. can any one help me how to do it.. Chaitanya

Re: Need help with writing recursive menu in Perl.

2010-05-18 Thread Mohan
Hi There is an example available in the following location http://squirrelmail.svn.sourceforge.net/viewvc/squirrelmail/trunk/squirrelmail/config/conf.pl?view=markup its a recursive menu driven script. HTH. -- Regards, Mohan. On 18/05/10 13:40, Steve Bertrand wrote: On 2010.05.17 21:44, Cheta

Re: Need help with writing recursive menu in Perl.

2010-05-18 Thread Steve Bertrand
On 2010.05.17 21:44, Chetan wrote: > Dear Perl Experts, > > I need a big favor & help for me to learn perl programming, > I need to write menu to display (say Alpha, Beta, Gema) & store in > variable var1, based on which option is selected, I need to display > values in the next menu (if Alpha is

Need help with writing recursive menu in Perl.

2010-05-18 Thread Chetan
Dear Perl Experts, I need a big favor & help for me to learn perl programming, I need to write menu to display (say Alpha, Beta, Gema) & store in variable var1, based on which option is selected, I need to display values in the next menu (if Alpha is selected A1, A2, A3 & so on) and store it in va

Re: Need help to resove..... ExtUtils-Makemaker comilationS

2010-04-30 Thread Shlomi Fish
Hi Raheel, On Friday 30 Apr 2010 14:17:03 Raheel Hassan wrote: > Hi Shlomi, > > I am very thankful to you for helping me, yes i resolved the problem > actually perl-devel was missing. So when i executed 'urpmi perl-devel' i > got EXTERN.h. Now i am able to install all the required packages from >

Re: Need help to resove..... ExtUtils-Makemaker comilationS

2010-04-24 Thread Shlomi Fish
Hi Raheel, Sorry for the late response. On Friday 23 Apr 2010 19:04:20 Raheel Hassan wrote: > Hi Shlomi and Owen, > > On Thu, Apr 22, 2010 at 5:37 PM, Shlomi Fish wrote: > >2.6.27.24-2 is the kernel version (which is kinda old - I'm using > > 2.6.33.2). I > > >need the Mandriva version - plea

Re: Need help to resove..... ExtUtils-Makemaker comilationS

2010-04-23 Thread Dermot
On 23 April 2010 17:04, Raheel Hassan wrote: > Hi Shlomi and Owen, > On Thu, Apr 22, 2010 at 5:37 PM, Shlomi Fish wrote: > >>2.6.27.24-2 is the kernel version (which is kinda old - I'm using > 2.6.33.2). I >>need the Mandriva version - please do: >>[shell] >>shlomi:~$ cat /etc/mandriva-release >>

Re: Need help to resove..... ExtUtils-Makemaker comilationS

2010-04-23 Thread Raheel Hassan
Hi Shlomi and Owen, On Thu, Apr 22, 2010 at 5:37 PM, Shlomi Fish wrote: >2.6.27.24-2 is the kernel version (which is kinda old - I'm using 2.6.33.2). I >need the Mandriva version - please do: >[shell] >shlomi:~$ cat /etc/mandriva-release >Mandriva Linux release 2010.1 (Cooker) for i586 >shlomi:~$

  1   2   3   4   5   6   7   8   9   >