Re: REGEXP removing - il- - -b-f and - il- - - - f

2005-04-28 Thread Ing. Branislav Gerzo
[EMAIL PROTECTED] [D], on Wednesday, April 27, 2005 at 12:55 (-0400) wrote the following: D> But I do not understand what the (split)[-1] is saying? please explain. it gets last splitted value from the list. (split)[0] #get the first splitted value (split)[0,1] #get first and second splitted v

Re: serial programming in Perl,

2005-04-28 Thread laxmi goudappa patil
 Hi All, Thanks for your response. sorry (for bad subject).. i'll take care of that from next time. The operating system im working on is SCO Unix, and the device(port) is /dev/tty1a The code looks something like this. writeport($request); #writing connect request my

Re: General Enquiry regarding the Perl

2005-04-28 Thread Rajat Dudeja
Hi Ashoka, If I am not mistaken Beginning Perl is the book from Simon Cozens. AnywaysI am going through both the books as recommended by you. Thanks a Lot for your support. :-) Best Regards, Rajat Dudeja On 4/25/05, ashoka gupta <[EMAIL PROTECTED]> wrote: > > dear rajat > if u r able to q

Re: mysql driver problem? (slightly off topic)

2005-04-28 Thread Felix Geerinckx
On 28/04/2005, Graeme McLaren wrote: > Hi all, this is slightly off topic but I'm sure someone here has come > across this problem. I cannot connect to mysql on my redhat 9 box. > > I ran: shell> perl -MCPAN -e 'install Bundle::DBD::mysql'; > > and it did say that there was a problem but all

DFA::Simple,State Machine Implementation

2005-04-28 Thread Alex Lisbaron
Hi All, I have created Final State Machine , using DFA::Sample. My quest` is: how I can use MORE than one instances of my FSM simultaneously. something like this: I have: my $fsm = new DFA::Simple [EMAIL PROTECTED]; I need my $fsm[0] = new DFA::Simple [EMAIL PROTECTED]; # FIRST INSTANC

Re: examples using Template::Plugin::Page

2005-04-28 Thread Robert
"Ramprasad A Padmanabhan" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all, > I have a html reports page that has now grown too large to manage. I > want to paginate my report. I am already using templates , similar to > Template.pm so I would like keep the presentation stuff

Compare to a list

2005-04-28 Thread Dan Litsky
I have a group of files that are sent to me every month and I'd like to write a quick Perl script to check to make sure that all of the fields are coming in. I wrote a Perl script to dump out all the field names (it dumps out all the headers which are the field names) and I've made sure it's co

Re: REGEXP removing - il- - -b-f and - il- - - - f

2005-04-28 Thread JupiterHost.Net
(really beginners) could think "@a" will empty array, which is not true. yes it is true, they are both empty lists: perl -mstrict -MData::Dumper -we 'my @x;my @y = ();print Dumper [EMAIL PROTECTED], [EMAIL PROTECTED];' Show me any difference in @x and @y :) Its about when and how its handled and

Re: Compare to a list

2005-04-28 Thread Ing. Branislav Gerzo
Dan Litsky [DL], on Thursday, April 28, 2005 at 06:53 (-0700 (PDT)) typed the following: DL> fields in Excel and read from that or I guess I can read the list DL> into a Perl array but then I need to go through all of the files, DL> match to the filename in the list and then look for the fields in

Re: REGEXP removing - il- - -b-f and - il- - - - f

2005-04-28 Thread Ing. Branislav Gerzo
JupiterHost.Net [JN], on Thursday, April 28, 2005 at 09:11 (-0500) contributed this to our collective wisdom: >> (really beginners) could think "@a" will empty array, which is not >> true. JN> yes it is true, they are both empty lists: @a will not empty array, here it is: my @a = q{foo bar}; @a

Re: REGEXP removing - il- - -b-f and - il- - - - f

2005-04-28 Thread JupiterHost.Net
Ing. Branislav Gerzo wrote: JupiterHost.Net [JN], on Thursday, April 28, 2005 at 09:11 (-0500) contributed this to our collective wisdom: (really beginners) could think "@a" will empty array, which is not true. JN> yes it is true, they are both empty lists: @a will not empty array, here it is: I

if else question

2005-04-28 Thread Brian Volk
Hi All, The first time I wrote this if else statement I wrote it correctly... now I've confused myself... :~) If the "if" statement returns false the program writes that line in the file to $error_log for every $file in the directory I just what the line in the file to be written one ti

Re: if else question

2005-04-28 Thread mgoland
- Original Message - From: Brian Volk <[EMAIL PROTECTED]> Date: Thursday, April 28, 2005 11:27 am Subject: if else question > Hi All, Hello, > > The first time I wrote this if else statement I wrote it > correctly... now > I've confused myself... :~) That will happen often ! > > I

RE: Compare to a list

2005-04-28 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Dan Litsky wrote: > I have a group of files that are sent to me every month and I'd like > to write a quick Perl script to check to make sure that all of the > fields are coming in. I wrote a Perl script to dump out all the > field names (it dumps out all the headers which are the field names) > a

RE: if else question

2005-04-28 Thread Brian Volk
> > Hi All, > Hello, > > > > > The first time I wrote this if else statement I wrote it > > correctly... now > > I've confused myself... :~) > That will happen often ! > > > > If the "if" statement returns false the program writes that line > > in the file > > to $error_log for every $file

Re: RE: if else question

2005-04-28 Thread mgoland
- Original Message - From: Brian Volk <[EMAIL PROTECTED]> Date: Thursday, April 28, 2005 12:45 pm Subject: RE: if else question > > > > Hi All, > > Hello, > > > > > > > > The first time I wrote this if else statement I wrote it > > > correctly... now > > > I've confused myself... :~

Re: REGEXP removing - il- - -b-f and - il- - - - f

2005-04-28 Thread Jay Savage
On 4/27/05, John W. Krahn <[EMAIL PROTECTED]> wrote: > Jay Savage wrote: > > > > 4> open (V4, "samcmd v4 2>\&1 |" ) || die "unable to open pipe... > > Broken?$!"; > > > > Don't do this. the precedence of || is too high. your code attempts > > to open a pipe, and if it can't, then it attempts

perl module to create pdf reports

2005-04-28 Thread radhika
Hi, I need to create some customized pdf reports and was wondering if there are any perl modules out there to help. I already have my perl script getting data from the db and creating a csv file. I understand that there is an html2ps module which I can then use to make a pdf. Of course before that

Re: perl module to create pdf reports

2005-04-28 Thread Gavin Henry
On Thursday 28 Apr 2005 20:42, radhika wrote: > Hi, > I need to create some customized pdf reports and was wondering if there > are any perl modules out there to help. > I already have my perl script getting data from the db and creating a csv > file. I understand that there is an html2ps module wh

Re: perl module to create pdf reports

2005-04-28 Thread Chris Devers
On Thu, 28 Apr 2005, radhika wrote: > I need to create some customized pdf reports and was wondering if there > are any perl modules out there to help. Good question. Have you searched CPAN ? Go to . Put 'PDF' in the search field. You're sent to

Re: perl module to create pdf reports

2005-04-28 Thread radhika
Chris, Yes, I did search CPAN and found a lot of interesting modules. I will mention that I had asked for ideas and insights, over and above of just plain module names. I guess you often assume people do not search CPAN, and hence I can understand the frustration your email seems to portray. I do v

Re: perl module to create pdf reports

2005-04-28 Thread Chris Devers
On Thu, 28 Apr 2005, radhika wrote: > Yes, I did search CPAN and found a lot of interesting modules. Okay then -- which? How do they meet your needs, or fail to meet them? > I will mention that I had asked for ideas and insights, over and above > of just plain module names. I guess you often as

Re: examples using Template::Plugin::Page

2005-04-28 Thread Todd W
"Ramprasad A Padmanabhan" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all, >Can anybody send me some examples on pagination with Templates > I have also had great sucess with DBIx::Pager. There arent any examples, but the source is short and very easy to read. Todd W.

Re: examples using Template::Plugin::Page

2005-04-28 Thread JupiterHost.Net
Ramprasad A Padmanabhan wrote: Hi all, Hello, I have a html reports page that has now grown too large to manage. I want to paginate my report. I am already using templates , similar to Template.pm so I would like keep the presentation stuff outside my perl code. I was trying to use Data::Page

RE: Password

2005-04-28 Thread Rentachintala, Jagan
Hi jose j cintron, I am trying to do the same thing you explained like below, in windows environment, but I am getting syntax error: Do you have any idea?? perl -p -i -e 's/username\/password as SYSOPER/username\/# as SYSOPER/g' test.dat Can't find string terminator "'" anywhere before EOF

RE: RE: if else question

2005-04-28 Thread Brian Volk
> OK I get it now. I have made a few changes to your original, > particular because I don't liek to use @ARGV with in a > script. I also changes the way you store file, moving it into > a hash structure so comparisons are much faster. Feel free to > modifie as is. > > HTH, > Mark G. > > #!PER

Re: Password

2005-04-28 Thread Jean-Sébastien Guay
Hi Jagan, perl -p -i -e 's/username\/password as SYSOPER/username\/# as SYSOPER/g' test.dat Can't find string terminator "'" anywhere before EOF at -e line 1. is the error I am getting On Windows the single quote is not a valid quoting character for the shell (cmd.exe or command.com). Repla

Re: REGEXP removing - il- - -b-f and - il- - - - f

2005-04-28 Thread John W. Krahn
Jay Savage wrote: On 4/27/05, John W. Krahn <[EMAIL PROTECTED]> wrote: Jay Savage wrote: 4> open (V4, "samcmd v4 2>\&1 |" ) || die "unable to open pipe... Broken?$!"; Don't do this. the precedence of || is too high. your code attempts to open a pipe, and if it can't, then it attempts to open "

parsing command line arguments multiple times

2005-04-28 Thread lohit
Hi, i have a requirement, as in based on one command line option, the rest of the arguments change for the same script. eg: script could be called in either of the ways script1 -option1 -option2 adfas -option3 script -option1 -option4 my question is 1. how do we get the option1 alone from GetO