HELP - installing Win32::AdminMisc

2003-01-29 Thread PRADEEP GOEL
Hi All I have followed many ways of installing AdminMisc ( 2 are described below) but all in vain . I don't know where is this ADMINMISC_XXX.PLL there is one ADMINMISC.DLL although is there . then when i give install Win32::AdminMisc output is PPM> install Win32::AdminMisc Install package 'Win3

Re: HTML::TokeParser and  

2003-01-29 Thread David Eason
John W. Krahn wrote: > According to HTML::Entities > > # Some extra Latin 1 chars that are listed in the HTML3.2 draft > (21-May-96) > copy => '©', # copyright sign > reg=> '®', # registered sign > nbsp => "\240", # non breaking space Thanks, John, I had no idea where to look. I did

XML -> Perl-variables using XML::Parser

2003-01-29 Thread Nils-Anders Persson
Hello good people! I have a bit of a problem with turning this piece of XML into a Perl-variable using the XML::Parser. Earlier i have used the XML::Dt parser to do this and it works, but the amount of data is to big for the later (takes to much time to parse through the file). I wonder if there i

Apache-Parselog module

2003-01-29 Thread Rob.Grim
Hi list, I've noticed that the Apache-Parselog module is not available for win32 (I'm running activestate perl at win32). I have two questions: Does anyone know a good working alternative to parse out apache log- files on a win32 system: Does anyone know if someone is working on the Apache pa

Sharing variables

2003-01-29 Thread Enric Roca
Hello, I'm new in Perl programming and I think that this is an easy question for you: I'm using Apache 1.3.26 and Perl 5.5.3 and I don't want to install additional modules if I can avoid it. I have an script, ex. test.pl that must control if it is already executing, and if it is, it must wait for

RE: XML -> Perl-variables using XML::Parser

2003-01-29 Thread NYIMI Jose (BMB)
Give a look to this : http://www.xml.com/pub/a/2001/02/14/perlsax.html José. > -Original Message- > From: Nils-Anders Persson [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 29, 2003 10:09 AM > To: [EMAIL PROTECTED] > Subject: XML -> Perl-variables using XML::Parser > > > Hello

Re: Apache-Parselog module

2003-01-29 Thread John W. Krahn
"Rob.Grim" wrote: > > Hi list, Hello, > I've noticed that the Apache-Parselog module is not available for > win32 (I'm running activestate perl at win32). According to http://testers.cpan.org/search?request=dist&dist=Apache-ParseLog it has been tested and works on Windows. John -- use Perl;

Re: help me to replace ascii charecter with some other ascii charector or text

2003-01-29 Thread John W. Krahn
"R. Joseph Newton" wrote: > > If you want to actually use the non-ASCII characters contained in MS Word, > you will have to learn the wider character set used. You may also need to > come up with a list of MS Word control characters. You might get some help by looking at the source for Demoroniz

Re: HTML::TokeParser and  

2003-01-29 Thread John W. Krahn
David Eason wrote: > > John W. Krahn wrote: > > According to HTML::Entities > > > > # Some extra Latin 1 chars that are listed in the HTML3.2 draft > > (21-May-96) > > copy => '©', # copyright sign > > reg=> '®', # registered sign > > nbsp => "\240", # non breaking space > > Thanks,

Array question

2003-01-29 Thread PL LAMBALLAIS
Hello, I'm working with a GIF generator and I've a little problem using array as parameters: This call works perfectly: $my_graph->set( markers => [1,2], # kind of markers (here, 2 markers) marker_size => $marker_si

References

2003-01-29 Thread Brian Ling
Hi list, The following code fragment works but has a horrible feel about it, can anyone suggest ways to improve it. The data structure is generated by an XML parser. for ( keys %{$parsed_data->{value}->{NetworkServices}->{value}} ) { if ( $parsed_data->{value}->{NetworkServices}->{value}

RE: Sharing variables

2003-01-29 Thread Bob Showalter
Enric Roca wrote: > Hello, > > I'm new in Perl programming and I think that this is an easy question > for you: > > I'm using Apache 1.3.26 and Perl 5.5.3 and I don't want to install > additional modules if I can avoid it. > I have an script, ex. test.pl that must control if it is already > execu

RE: Sharing variables

2003-01-29 Thread wiggins
On Wed, 29 Jan 2003 13:42:49 +0100, "Enric Roca" <[EMAIL PROTECTED]> wrote: > Hello, > > I'm new in Perl programming and I think that this is an easy question for > you: > > I'm using Apache 1.3.26 and Perl 5.5.3 and I don't want to install > add

RE: Array question

2003-01-29 Thread Bob Showalter
PL LAMBALLAIS wrote: > Hello, > > > I'm working with a GIF generator and I've a little problem using > array as parameters: > > This call works perfectly: > > $my_graph->set( > markers => [1,2], > # kind of markers (here, 2 markers) > marker_size => $mar

how to read binary files in perl

2003-01-29 Thread HK
hi all, i am a newbie to perl. I have an application in C which will dump statistics (C structures) into log files for post processing. Can i read those log files from perl and form equivalent structures which will help in analysing the files and generate a report on the statistics. TIA. -- reg

Re: how do i get rid of "<> and , chars ??????

2003-01-29 Thread Janek Schleicher
On Tue, 28 Jan 2003 02:03:32 -0800, Swami Anadi wrote: > I am reading a line from a file and splitting it into > a 2 dimensional array, this is no probs.. > BUT i want to get rid of " < > and , out of each line > - how do i do this ??? What do you mean with "ridding" " < > and , out. It's alw

RE: Array question

2003-01-29 Thread Bob Showalter
[redirecting back to list. keep the discussions on-list, folks.] PL LAMBALLAIS wrote: > Well, markers type don't change. :-/ > > Try this: > http://www.parx.net/cgi-bin/samples/bob_1.pl > and > http://www.parx.net/cgi-bin/samples/bob_2.pl > > (force refresh as it display a generated GIF so runni

Re: Array question

2003-01-29 Thread PL LAMBALLAIS
Bob Showalter a *crit : > > [redirecting back to list. keep the discussions on-list, folks.] Yes :-) > > PL LAMBALLAIS wrote: > > Well, markers type don't change. :-/ > > > > Try this: > > http://www.parx.net/cgi-bin/samples/bob_1.pl > > and > > http://www.parx.net/cgi-bin/samples/bob_2.pl > >

Re: how to read binary files in perl

2003-01-29 Thread Paul Johnson
HK said: > hi all, > i am a newbie to perl. > I have an application in C which will dump statistics (C structures) into > log files for post processing. > Can i read those log files from perl and form equivalent structures which > will help in analysing the files and generate a report on the stat

Re: References

2003-01-29 Thread Jenda Krynicky
From: "Brian Ling" <[EMAIL PROTECTED]> > The following code fragment works but has a horrible feel about it, > can anyone suggest ways to improve it. > > The data structure is generated by an XML parser. > > for ( keys %{$parsed_data->{value}->{NetworkServices}->{value}} ) { > if ( > $par

Re: Apache-Parselog module

2003-01-29 Thread Jenda Krynicky
From: "Rob.Grim" <[EMAIL PROTECTED]> > I've noticed that the Apache-Parselog module is not available for > win32 (I'm running activestate perl at win32). You can install it via ppm from http://Jenda.Krynicky.cz/perl Jenda = [EMAIL PROTECTED] === http://Jenda.Krynicky.cz = When it comes t

Re: HELP - installing Win32::AdminMisc

2003-01-29 Thread Jenda Krynicky
From: "PRADEEP GOEL" <[EMAIL PROTECTED]> > I have followed many ways of installing AdminMisc ( 2 are described > below) Try PPM> install http://Jenda.Krynicky.cz/perl/Win32-AdminMisc.ppd Jenda = [EMAIL PROTECTED] === http://Jenda.Krynicky.cz = When it comes to w

A very annoying regex question.

2003-01-29 Thread Zeus Odin
I have spent a very LONG time trying to determine why this script is not splitting properly only on lines that have equals marks and only on the first equals. This would be very easy if I didn't slurp in the entire file at once, but hey life usually isn't easy. The array @a should always have an eq

Re: A very annoying regex question.

2003-01-29 Thread Jenda Krynicky
From: Zeus Odin <[EMAIL PROTECTED]> > I have spent a very LONG time trying to determine why this script is > not splitting properly only on lines that have equals marks and only > on the first equals. This would be very easy if I didn't slurp in the > entire file at once, but hey life usually isn't

Re: A very annoying regex question.

2003-01-29 Thread Robert Citek
Hello Zeus, At 09:49 AM 1/29/2003 -0500, Zeus Odin wrote: >I have spent a very LONG time trying to determine why this script is not >splitting properly only on lines that have equals marks and only on the >first equals. I'm not quite sure what you are trying to do. So below is a modified versio

Mail::Sender module

2003-01-29 Thread Dan Muey
Hello All, Just a quick question I can't find an answer to and I believe one of our frequenters will know for sure as they are the module author I've read somewhere ( in a dreaded Oreilley book ;D ) that the Mail series of modules uses the OS's native mail prog to send mail ( sendamil, qmai

Re: References

2003-01-29 Thread Rob Dixon
Brian Ling wrote: > Hi list, > > The following code fragment works but has a horrible feel about it, > can anyone suggest ways to improve it. > > The data structure is generated by an XML parser. > > for ( keys %{$parsed_data->{value}->{NetworkServices}->{value}} ) { > if ( > $parsed_data->

Re: Mail::Sender module

2003-01-29 Thread Jenda Krynicky
From: "Dan Muey" <[EMAIL PROTECTED]> > Just a quick question I can't find an answer to and I believe one of > our frequenters will know for sure as they are the module author > > I've read somewhere ( in a dreaded Oreilley book ;D ) that the Mail > series of modules uses the OS's native mail p

RE: Mail::Sender module

2003-01-29 Thread Dan Muey
> From: "Dan Muey" <[EMAIL PROTECTED]> > > Just a quick question I can't find an answer to and I > believe one of > > our frequenters will know for sure as they are the module author > > > > I've read somewhere ( in a dreaded Oreilley book ;D ) that the Mail > > series of modules uses the

RE: :SMTP::Multipart Module

2003-01-29 Thread Dan Muey
Well, I've given up trying to install the Net::SMTP::Multipart Module. I'm going to use Mail::Sender instead which actually looks like it does more and It installed first time el prefecto! Thanks Jenda for that module!! I'd like to thank John for all his patient help in trying to get this to wor

Need help

2003-01-29 Thread Ron Geringer
I'm pretty much used to scripting sendmail applications in tcl - and I'm very new to perl so this may be a dumb question. I'm working with a sendmail script that I got off the internet. The script that I'm working with is listed below: #!/usr/bin/perl use CGI; my $query= new CGI; my $sendmail

sorting thoughts

2003-01-29 Thread Steven_Massey
Hi just about to embark on a sorting routine, and I thought before I spend ages(at my ability) I would see what thoughts you guys have on this. I have an array, each line contains fields seperated by ":" I want to sort the array numerically ascending by the last field. my thoughts are to split

RE: References

2003-01-29 Thread Brian Ling
Thanks for that Rob, Jenda I hadn't realized you could do that with the hash value, Easy when someone shows you. Brian :-) -Original Message- From: Rob Dixon [mailto:[EMAIL PROTECTED]] Sent: 29 January 2003 16:10 To: [EMAIL PROTECTED] Subject: Re: References Brian Ling wrote: > Hi li

Re: A very annoying regex question.

2003-01-29 Thread Zeus Odin
Hello, Robert. Thanks for the reply. An even shorter version of yours is: - my @a; while(){ next unless /=/ && chomp; push @a, split /=/, $_, 2; } print "$_\n" for @a; - This avoids the temp @f. However, that's just it. I wanted to avoid proc

RE: Need help

2003-01-29 Thread Dan Muey
> I'm pretty much used to scripting sendmail applications in > tcl - and I'm very new to perl so this may be a dumb > question. I'm working with a sendmail script that I got off > the internet. The script that I'm working with is listed below: > > #!/usr/bin/perl > use CGI; > > my $query=

RE: sorting thoughts

2003-01-29 Thread Ed Christian
Undoubtedly not the best way of doing this, but here's one stab at it. This assumes you have your data stored in an array as a single string, rather than having an array of array pointers. my @array = ('fred:lucy:24', 'john:jane:10', 'frank:mary:5'); @array = sort { my @a_vals = split (':', $a);

Mail::Sender question

2003-01-29 Thread Dan Muey
Shoot me if this is already in the docs but is it possible to send a variable that contains html as an html attachement without it being a file first using Mail::Sender? Eg - my $html_file_name = "no_existant.html"; # there is no file called 'no_existant.html' my $html = " Hello, this would

RE: sorting thoughts

2003-01-29 Thread Wagner, David --- Senior Programmer Analyst --- WGO
[EMAIL PROTECTED] wrote: > Hi > > just about to embark on a sorting routine, and I thought before I > spend ages(at my ability) I would see what thoughts you guys have on > this. > > I have an array, each line contains fields seperated by ":" > I want to sort the array numerically ascending by

Help installing Perl and Perl Modules on Mac OS X

2003-01-29 Thread David Brookes
Hi Everyone This is my first post and I am a complete Perl Newbie. Here is the background: (The next paragraph may be skipped.) I am involved in a physics education project which includes maintaining a rather large webpage. I am proficient in html, but I discovered that no matter what I do, dif

Re: HTML::TokeParser and  

2003-01-29 Thread David Eason
I get a space in my editor output window. but when I run it from a cmd window, I get the other character. (This is under Windows 2000 and perl 5.8.0) "John W. Krahn" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > David Eason wrote: > > > > John W. Krahn wrote: >

RE: Need help

2003-01-29 Thread Dan Muey
Don't forget to post to list and not just the orginal sender!! > > Dan: > > except that I ran the same script on my local linux box and > got a similar error regarding headers: > > [Wed Jan 29 09:44:52 2003] [error] [client 192.168.0.202] > malformed header from script. Bad [EMAIL PROTECTED]:

RE: Help installing Perl and Perl Modules on Mac OS X

2003-01-29 Thread wiggins
On Wed, 29 Jan 2003 11:53:17 -0500 (EST), David Brookes <[EMAIL PROTECTED]> wrote: > Hi Everyone > > This is my first post and I am a complete Perl Newbie. Here is the > background: (The next paragraph may be skipped.) > > I basically need h

Re: Mail::Sender question

2003-01-29 Thread Jenda Krynicky
From: "Dan Muey" <[EMAIL PROTECTED]> > Shoot me if this is already in the docs but is it possible to send a > variable that contains html as an html attachement without it being a > file first using Mail::Sender? :-) Yes it it possible. $sender = new Mail::Sender {...}; $sender->

Re: sorting thoughts

2003-01-29 Thread Jenda Krynicky
From: [EMAIL PROTECTED] > just about to embark on a sorting routine, and I thought before I > spend ages(at my ability) I would see what thoughts you guys have on > this. As Slobodan Jaksic correctly pointed out a few weeks ago I don't have any thoughts of my own. I just point people to docs :-P

RE: Need help

2003-01-29 Thread Dan Muey
Please reply to the list and no tjust to me! Hit your mail client's reply-to all button and make sure you have the list address in either the to or CC section. That way we all benefit. > > I'm really new at this so forgive me if I sound stupid. I > didn't quite understand "Copy the line that ha

RE: Mail::Sender question

2003-01-29 Thread Dan Muey
> > From: "Dan Muey" <[EMAIL PROTECTED]> > > Shoot me if this is already in the docs but is it possible > to send a > > variable that contains html as an html attachement without > it being a > > file first using Mail::Sender? > > :-) > > Yes it it possible. > > $sender = new Mail::Se

Apache-Parselog module.

2003-01-29 Thread Rob.Grim
{PRIVATE "TYPE=PICT;ALT=PASS}Hi list, Thanks for the reactions I got from John and Jenda (I've added you site to my favourites) on the Apache-Parselog module. Please allow me to ask a few additional questions that came up after reading the comments: Following the link suggested by John:

RE: Need help

2003-01-29 Thread Ron Geringer
-Original Message- From: Ron Geringer [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 12:35 PM To: Dan Muey Subject: RE: Need help Thought that's what you meant but didn't want to impose if I was wrong. Here is the script from my linux box. I'm running it pretty much the w

Re: Apache-Parselog module.

2003-01-29 Thread Jenda Krynicky
From: "Rob.Grim" <[EMAIL PROTECTED]> > Thanks for the reactions I got from John and Jenda (I've added you > site to my favourites) on the Apache-Parselog module. > > Please allow me to ask a few additional questions that came up after > reading the comments: > > Following the link suggested by

RE: Need help

2003-01-29 Thread Dan Muey
Check to make sure that the list address is in the to ro cc field. This one was sent just to me as well. Any who on to business... > > > Thought that's what you meant but didn't want to impose if I > was wrong. > > Here is the script from my linux box. I'm running it pretty > much the way I t

still needing help

2003-01-29 Thread Ron Geringer
Here is the script from my linux box. I'm running it pretty much the way I took it off the web except I changed the reply-to my email and put the "\" before the "@". I've named the script "test.cgi" and put it in my cgi-bin directory on the linux box. The html document is in the www/html director

Re: HTML::TokeParser and  

2003-01-29 Thread Rob Dixon
"David Eason" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I get a space in my editor output window. but when I run it from a cmd > window, I get the other character. (This is under Windows 2000 and perl > 5.8.0) Hi David Windows command prompt doesn't supp

Linux Perl Gantt Chart display issue

2003-01-29 Thread John P Walls
Hello, I've recently been told I am now the PERL support person, even though I've never worked with Perl before. I've gone through the O'Reilly Nutshell book, but cannot solve an issue. We are running SUSE Linux 8.0 Professional. We have a Perl script ( original author is long gone ) that doe

Re: sorting thoughts

2003-01-29 Thread Rob Dixon
"Steven Massey" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] m... > Hi > > just about to embark on a sorting routine, and I thought before I spend > ages(at my ability) I would see what thoughts you guys have on this. > > I have an array, each line contains fields seperated by ":"

Weird problem with writing to PostgreSQL through DBI

2003-01-29 Thread Ben Siders
I am parsing some XML and trying to write the tags to a table. Here is the table (PostgreSQL): Column | Type | Modifiers ---+-+--- id| integer | ref_id| text| ref_table | text| tag | text| seq | integer | Here is the code where I

Re: Weird problem with writing to PostgreSQL through DBI

2003-01-29 Thread Ben Siders
Nevermind. Got it figured out. Turns out I had a bad environment variable that was trying to insert into a parallel DB in which the ref_id field was defined as 'integer' instead of 'text'. Ben Siders wrote: I am parsing some XML and trying to write the tags to a table. Here is the table (Po

RE: Mail::Sender question

2003-01-29 Thread Dan Muey
So to send an html file attachment (from html in a variable not a file) with images :: Which is the best way to send the images? use disposition=inline and the cid:img1 img tag or Use disposition=attachment and a regular img tag If neither what am I missing? $sender = new Mail::S

Re: Linux Perl Gantt Chart display issue

2003-01-29 Thread Paul Johnson
On Wed, Jan 29, 2003 at 12:58:57PM -0700, John P Walls wrote: > Hello, Hello, > I've recently been told I am now the PERL support person, even though > I've never worked with Perl before. That's fun. First lesson: it's Perl, not PERL :-) > I've gone throu

Re: sorting thoughts

2003-01-29 Thread david
Steven Massey wrote: > > I have an array, each line contains fields seperated by ":" > I want to sort the array numerically ascending by the last field. > > my thoughts are to split fields into seperate arrays, go through the last > array in a comparing process, moving each row index in the orig

RE: sorting thoughts

2003-01-29 Thread Bob Showalter
david wrote: > Steven Massey wrote: > > > > > I have an array, each line contains fields seperated by ":" > > I want to sort the array numerically ascending by the last field. > > > > my thoughts are to split fields into seperate arrays, go through > > the last array in a comparing process, mov

RE: sorting thoughts

2003-01-29 Thread david
Bob Showalter wrote: > > This will be quicker than the other methods, especially as the array size > grows. Try your benchmark with an array of say 10, or 100 elements. > yes, it's faster. i didn't include the code since this algr. is well known. just some number for those who are interested: B

creating hash from name/value found in file.

2003-01-29 Thread Jamie Risk
Okay, it's 5:25pm and I started programming PERL shortly after downloading the 5.8.0 tarballs at 2:30pm. I'd like to create a hash from a text file that has name/value pairs, one per line. So far, I'm only capable of reading it in as a list - this PERL stuff really seems easy - but can I (excuse th

RE: creating hash from name/value found in file.

2003-01-29 Thread Timothy Johnson
Why not something like this? my %hash; while(){ chomp $_;#remove the newline my($key,$value) = split(/,/,$_); #split by commas or whatever $hash{$key} = $value;#assign the value here } foreach(sort keys %hash){ print "$key => $value\n"; } -Origin

RE: creating hash from name/value found in file.

2003-01-29 Thread Toby Stuart
> -Original Message- > From: Jamie Risk [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 30, 2003 9:32 AM > To: [EMAIL PROTECTED] > Subject: creating hash from name/value found in file. > > > Okay, it's 5:25pm and I started programming PERL shortly > after downloading > the 5.8.0 t

Re: creating hash from name/value found in file.

2003-01-29 Thread Jamie Risk
Thanks, Timothy, I almost had it before I decided to look back at the list. My only concern was the creation of data space for each new key, I guess it's a non issue. ALTHOUGH, if I have repetitions of keys, code below would obliterate previous key data, would it not? I guess I'm looking at a hash

Re: HTML::TokeParser and  

2003-01-29 Thread John W. Krahn
Rob Dixon wrote: > > "David Eason" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > I get a space in my editor output window. but when I run it from a cmd > > window, I get the other character. (This is under Windows 2000 and > perl > > 5.8.0) > > Windows co

RE: creating hash from name/value found in file.

2003-01-29 Thread Timothy Johnson
Yep, or a list of hashes. Being that you've only used it for a little while, you probably haven't had time to look through the *extensive* documentation. Try checking out "perldoc perlreftut" and "perldoc perlref" and "perldoc perllol". -Original Message- From: Jamie Risk [mailto:[EMAIL

RE: Mail::Sender question

2003-01-29 Thread Jenda Krynicky
From: "Dan Muey" <[EMAIL PROTECTED]> > So to send an html file attachment (from html in a variable not a > file) with images :: Which is the best way to send the images? use > disposition=inline and the cid:img1 img tag or Use > disposition=attachment and a regular img tag Well this can get a bi

Re: still needing help

2003-01-29 Thread jdavis
i have not been following this thread...but it appears as if you just want a generic cgi scrip to work...I like to use &ReadParse for most of my easy cgi interactions ...heer is a example.. if you had a form varable like so you could use ReadParse like this... #!/usr/bin/perl &ReadParse;

Re: Linux Perl Gantt Chart display issue

2003-01-29 Thread John W. Krahn
John P Walls wrote: > > Hello, Hello, > I've recently been told I am now the PERL support person, even though I've never > worked with Perl before. I've gone through the O'Reilly Nutshell book, but > cannot solve an issue. We are running SUSE Linux 8.0 Professional. Good choice! :-) > We ha

Re: HTML::TokeParser and  

2003-01-29 Thread Rob Dixon
"John W. Krahn" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Rob Dixon wrote: > > > > "David Eason" <[EMAIL PROTECTED]> wrote in message > > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > I get a space in my editor output window. but when I run it from a c

Re: creating hash from name/value found in file.

2003-01-29 Thread John W. Krahn
Jamie Risk wrote: > > Okay, it's 5:25pm and I started programming PERL shortly after downloading > the 5.8.0 tarballs at 2:30pm. > I'd like to create a hash from a text file that has name/value pairs, one > per line. So far, I'm only capable of reading it in as a list - this PERL > stuff really se

Re: creating hash from name/value found in file.

2003-01-29 Thread Jamie Risk
Thanks for the pointers to the documentation. I'm happily playing with a hash of a hash of lists which is ideal for the problem I'm wanted to solve. This PERL stuff is great! - Jamie "Timothy Johnson" <[EMAIL PROTECTED]> wrote in message C0FD5BECE2F0C84EAA97D7300A500D50046DD4BE@SMILEY">news:C0F

Help about Regex

2003-01-29 Thread lielie meimei
I'm newbie.. Would u help me to explain this regex: =[td]s/$directory/ What is the meaning of [td]???, because there is no metacharacter or regex that use [td]. Thanks for your help. __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign

Parsing Fixed Length data

2003-01-29 Thread Kevin Old
Hello all, I have run into a situation that I've never faced before. I've always parsed delimited (comma, pipe, etc) data. Now I'm faced with parsing fixed-width data. That's fine and I understand how to do it and have even found a module for it (Parse::FixedLength). Say I have the following s

RE: Help about Regex

2003-01-29 Thread Mark Anderson
Is this in pseudocode or in working code? I would guess that it is some sort of meta- for tilde (~), since you need =~ before the s/// construct. /\/\ark -Original Message- From: lielie meimei [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003

system call

2003-01-29 Thread jdavis
hello, Could someont tell me the secure way to get input from a system call like... $date = `/bin/date`; or $client = `/usr/bin/finsmb`; TIA, -- jd [EMAIL PROTECTED] Bad spellers of the world untie! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PRO

Re: Parsing Fixed Length data

2003-01-29 Thread Wiggins d'Anconia
Kevin Old wrote: Hello all, I have run into a situation that I've never faced before. I've always parsed delimited (comma, pipe, etc) data. Now I'm faced with parsing fixed-width data. That's fine and I understand how to do it and have even found a module for it (Parse::FixedLength). Say I ha

Re: system call

2003-01-29 Thread simran
not sure what you mean... but try: perldoc perlsec as a starting point... On Thu, 2003-01-30 at 12:38, jdavis wrote: > hello, > Could someont tell me the secure way > to get input from a system call > like... > > $date = `/bin/date`; > > or > > $client = `/usr/bin/finsmb`; > > TIA, > -

RE: Parsing Fixed Length data

2003-01-29 Thread Toby Stuart
> -Original Message- > From: Kevin Old [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 30, 2003 12:18 PM > To: [EMAIL PROTECTED] > Subject: Parsing Fixed Length data > > > Hello all, > > I have run into a situation that I've never faced before. I've always > parsed delimited (com

Re: Parsing Fixed Length data

2003-01-29 Thread John W. Krahn
Kevin Old wrote: > > Hello all, Hello, > I have run into a situation that I've never faced before. I've always > parsed delimited (comma, pipe, etc) data. Now I'm faced with parsing > fixed-width data. That's fine and I understand how to do it and have > even found a module for it (Parse::Fix

Re: system call

2003-01-29 Thread John W. Krahn
Jdavis wrote: > > hello, Hello, > Could someont tell me the secure way > to get input from a system call > like... > > $date = `/bin/date`; > > or > > $client = `/usr/bin/finsmb`; The output from using backticks is just data and so is not inherently insecure. However, how do you know that

how to use pos function

2003-01-29 Thread kasi ramanathen
hi friends i want to use pos function please give me an example. while($ln=~m/([…-])/g) { print pos; print "*$1*\n"; } kasi Catch all the cricket action. Download Yahoo! Score tracker

Re: Parsing Fixed Length data

2003-01-29 Thread John W. Krahn
Toby Stuart wrote: > > use strict; > use warnings; > > my %records; > > my $surname; > my $given_name; > my $price; You create these three variables because? > my @fields; You should declare this _inside_ the loop. > my $i=0; > while () > { > @fields = unpack("A10A10A7", $_);

Re: how to use pos function

2003-01-29 Thread John W. Krahn
Kasi ramanathen wrote: > > hi friends Hello, > i want to use pos function please give me an example. > > while($ln=~m/([?-])/g) > { > print pos; print pos $ln; > print "*$1*\n"; > } John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional com

RE: Parsing Fixed Length data

2003-01-29 Thread Toby Stuart
> -Original Message- > From: John W. Krahn [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 30, 2003 2:16 PM > To: [EMAIL PROTECTED] > Subject: Re: Parsing Fixed Length data > > > Toby Stuart wrote: > > > > use strict; > > use warnings; > > > > my %records; > > > > my $surname; >

how to use pos fn.

2003-01-29 Thread kasi ramanathen
hi, i want to just use a pos function to indicate the position of the match. help me kasi Catch all the cricket action. Download Yahoo! Score tracker

RE: Parsing Fixed Length data

2003-01-29 Thread Toby Stuart
> > > my $i=0; > > > while () > > > { > > > @fields = unpack("A10A10A7", $_); > > > > my @fields = unpack 'A10A10A7', $_; > > > > > > > $records{$i} = { > > > > Why not just use an array? > > different strokes for different strokes :) Now that

Re: A very annoying regex question.

2003-01-29 Thread Robert Citek
Hello Zeus, At 11:55 AM 1/29/2003 -0500, Zeus Odin wrote: >An even shorter version of yours is: >- >my @a; >while(){ > next unless /=/ && chomp; > push @a, split /=/, $_, 2; >} >print "$_\n" for @a; >- This is even shorter, eliminates all uses

Re: A very annoying regex question.

2003-01-29 Thread John W. Krahn
Robert Citek wrote: > > Hello Zeus, > > At 11:55 AM 1/29/2003 -0500, Zeus Odin wrote: > >An even shorter version of yours is: > >- > >my @a; > >while(){ > > next unless /=/ && chomp; > > push @a, split /=/, $_, 2; > >} > >print "$_\n" for @a; > >---

Re: how to use pos fn.

2003-01-29 Thread Jeff 'japhy' Pinyan
On Jan 30, kasi ramanathen said: >i want to just use a pos function to indicate the position of the match. pos() doesn't tell you that. It tells you where the NEXT match will START looking. If you're using Perl 5.6 or later, you can use the $-[0] variable (that is element 0 of the @- array) to

Re: help me to replace ascii charecter with some other ascii charector or text

2003-01-29 Thread R. Joseph Newton
"John W. Krahn" wrote: > You might get some help by looking at the source for Demoronizer > > http://www.fourmilab.ch/webtools/demoroniser/ Hi John, Well, it was a cute read, I must say. The only problem is that I'm not sure quite what application he was talking about. You see, I just tested

Re: Need help

2003-01-29 Thread R. Joseph Newton
Ron Geringer wrote: > I'm pretty much used to scripting sendmail applications in tcl - and I'm > very new to perl so this may be a dumb question. I'm working with a sendmail > script that I got off the internet. path>ppm ppm>install Mail::sendmail The following was posted within the last three

RE: Need help

2003-01-29 Thread Ron Geringer
Thanks for the feedback. Little late tonight but I'll give it a shot tomorrow. Again - thanks Ron -Original Message- From: R. Joseph Newton [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 12:23 AM To: Ron Geringer Cc: [EMAIL PROTECTED] Subject: Re: Need help Ron Geringer wr