bad news.

2001-09-11 Thread nafiseh saberi
in Iran all people so sad for the bad news in America. and want ti help them. - Best regards. Nafiseh Saberi Iran - Shiraz Try to always happy and hopefull. The smooth sea never made a skillful mariner. Love your enemies , it will caus

Re: Password Generators

2001-09-11 Thread Thomas R Wyant_III
Dean, The following note is about the philosophy rather than the practice of password generation. Anyone not interested is invited to move on to the next message. Password generators aren't as popular as they once were, due to the difficulty of remembering and typing a truly random sequence of c

Re: Problems using REGEXP

2001-09-11 Thread rich+ml
OK, first: $job{ra}=~/^(.*)\d\d/ does two things: returns true if $job{ra} contains two digits, and assigns the portion of the string BEFORE the two digits to $1. Second: The ? is not part of the regex. Syntax x?y:z evaluates to y if x is true, or to z if x is false, basically an inline if-then

line end problems - help #2

2001-09-11 Thread Ron Woodall
Hi All: I asked a similar question before and got no response. I guess I didn't explain myself. Here's the problem. I'm using a perl script to create an html page. The editor is located on a Windows '98 machine and the file resides on a Linux machine. The file is edited across

Re: Split and pattern match problem

2001-09-11 Thread Jason Tiller
Hi, Andrea, :) On Wed, 12 Sep 2001, Andrea Holstein wrote: > Jason Tiller wrote: > > # Find the string bounded by "". The '.+?' > > # finds all characters but isn't greedy; ".+" would match all of the > > # characters between the first "". > > # Store this match as $1. > > while( $text =~ /()/

Re: Split and pattern match problem

2001-09-11 Thread Andrea Holstein
Jason Tiller wrote: > ... > #!/usr/bin/perl > > # Store the text you provided in your e-mail as a big string. > $text = < > # Remove new lines, splitting into an array. > @text = split( "\n", $text ); > > # Now weld the string back together, with spaces instead of newlines! > $text = join(

Re: Getting Month Day from `date`

2001-09-11 Thread Robert Citek
Hello Richard, At 09:14 AM 9/11/2001 -0400, Richard Brust wrote: >I am trying to print lines from an HTML page that have a certain >date(today). The following works: > >lynx -dump http://www.tbri.com/News/pgPubCal.asp | grep "Sep 11" This did not work for me. Changing "Sep 11" to "Sep" worked

Re: Split and pattern match problem

2001-09-11 Thread Jason Tiller
Hi, Brian, :) I'm by no means a Perl expert, but I was intrigued that you asked a question I *might* actually be able to answer, so here goes: On Tue, 11 Sep 2001, Bradshaw, Brian wrote: > I have a string that I want to substitute words for each > tag. I am pretty sure I want to split the stri

Password Generators

2001-09-11 Thread Dean Theophilou
Hello: I'm in the process of writing a Perl script that will change a user's password on a yet-to-be-determined time schedule. However, I was wondering if there is a module or utility out there that can be used to generate a random password. If so, can someone point me the right directi

Passing Date from an Application

2001-09-11 Thread Kim Green
I am using a billing application called Saville Express to call a perl script and pass in a date. This is my prepare: $fetch_New_customers= $dbh->prepare(<<") || die "Can't prepare: $DBI::errstr\n ";#ataerr::dbprepare($dbh); select node_name, to_char(created_date,'MM-DD-'), to_char(acti

Split and pattern match problem

2001-09-11 Thread Bradshaw, Brian
Hello List, I am hoping I can get some help here. I admit, I am very weak on pattern matches. I have a string that I want to substitute words for each tag. I am pretty sure I want to split the string at the tags, then join pieces with each answer in its proper place. However, I just can't fig

Re:Seek issue

2001-09-11 Thread Jeff 'japhy/Marillion' Pinyan
On Sep 11, Jorge Goncalvez said: >Hi, I have this code: >open FILE, "< $SYSLOG" or die $!; > seek FILE,10,2; I'm sorry. I meant -10, not 10. -- Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ RPI Acacia brother #734 http://www.perlmonks.org/ http

Getting Month Day from `date`

2001-09-11 Thread Richard Brust
I am trying to print lines from an HTML page that have a certain date(today). The following works: lynx -dump http://www.tbri.com/News/pgPubCal.asp | grep "Sep 11" I have tried this in two perl scripts, and nothing is returned. The date is being parsed correctly, I believe, I was wondering if

Re: Perl and files bigger then 2GB

2001-09-11 Thread Robert Citek
Hello Alla, At 10:42 AM 9/11/2001 -0700, [EMAIL PROTECTED] wrote: >Hi, >Is perl has limitation of dealing with files bigger then 2 GBytes? Yes and no. For my boxes running RedHat linux 7.1, I rebuilt the RPM from the src.rpm file. Specifically, I changed one of the options in the perl.spec fi

Perl and files bigger then 2GB

2001-09-11 Thread Alla_Bondarenko
Hi, Is perl has limitation of dealing with files bigger then 2 GBytes? My UNIX operating system has no limits on file size and I am able to see large files with ls in shell. Korn shell scripts reading and writing to large files are working fine. However perl scripts don't recognize large files: te

Re: lyf

2001-09-11 Thread Michael Fowler
On Tue, Sep 11, 2001 at 11:58:12AM +0430, nafiseh saberi wrote: > when you want send or receive argument to function, > in perl this parameter shown with $, > for example : > foo(a,b,c); > a $1 > b $2 > c $3 > and $# means all of arguments You're confusing Perl with something else, perhaps sh

Installing/Verify modules

2001-09-11 Thread Sunthari
Dear List, Thank you very much for the help and info provided. I have managed to install my first module WWW::Search 2.23 correctly as well as executing my scripts as how it should be. Anyway, how can I check the manually installed modules as how I can check them using PPM ? I have encountered

'' and ""

2001-09-11 Thread Matija Papec
Is there a reason why '' should be preferred over "" when using static expressions? My guess is that "" takes a little longer at compile time for perl to see if variables resides inside quotes, but don't know if this is significant to bother with single quotes. ps. I've always used "" but now my

RE: Problems using REGEXP

2001-09-11 Thread Rupert Heesom
Thanks again for your SPEEDY reply. Your illustrations below helped me a lot. I'm beginning to get an idea of the power of perl & regexps in perl. I'm starting to be majorly impressed with it all. I think I grasp what I need to be doing now. Again thanks for all your help & your time. On 11

Re: Problems using REGEXP

2001-09-11 Thread Rupert Heesom
On 10 Sep 2001 10:15:38 -0700, [EMAIL PROTECTED] wrote: > For position, try: > > $p=($job{ra}=~/^(.*)\d\d/?length $1:-1); > > $p is 0-based index of '\d\d', or -1 if none. Wow, I can hardly follow the syntax above. It's very compact. Could you perhaps break it down so that I can understand wh

RE: Problems using REGEXP

2001-09-11 Thread HOLLAND-MORITZ,MARCUS (A-hsgGermany,ex1)
| -Original Message- | From: Rupert Heesom [mailto:[EMAIL PROTECTED]] | Sent: Tuesday, September 11, 2001 6:00 PM | To: HOLLAND-MORITZ,MARCUS " "(A-hsgGermany,ex1) | Cc: '[EMAIL PROTECTED]' | Subject: RE: Problems using REGEXP | | | Thanks so much for the response, Marcus. | | Now I kno

RE: Problems using REGEXP

2001-09-11 Thread Rupert Heesom
Thanks so much for the response, Marcus. Now I know why I was struggling. Sometimes I need human interaction to understand concepts besides just reading a book. More reply below - On 10 Sep 2001 13:51:23 +0200, HOLLAND-MORITZ,MARCUS (A-hsgGermany,ex1) wrote: > > Yes, there's a better way. Cat

Re: radio and perl ?

2001-09-11 Thread Andy McDowell
Hi Nafiseh, You can make radio buttons using perl cgi. Check out the link that will show you the perl documentation for it, it should give you a good starting reference. http://theoryx5.uwinnipeg.ca/CPAN/perl/CGI.html#CREATING_A_RADIO_BUTTON_GROUP All the best Andy On Tue, 11 Sep 2001 13:33:

problem with parsing of HTML

2001-09-11 Thread Rahul Garg
Well, I need to parse the HTML document and convert it into ascii. The HTML document contains tables.is there any module for it. With HTML::Parser its giving Table Not Shown ...

radio and perl ?

2001-09-11 Thread nafiseh saberi
do you write cgi form with perl that use radio button in it ??? how do you program it??? - Best regards. Nafiseh Saberi Iran - Shiraz Try to always happy and hopefull. The smooth sea never made a skillful mariner. Love your enemies , i

Re: how to use $1

2001-09-11 Thread victor
They are call backreferences, used in regular expression as buffer where you can store pieces of the result collected in the regular expression. eg. if you have this "123 456" =~ /(\d*) (\d*)/; $1 will equal to 123 while $2 will equal to 456 If you have the 'proramming perl' book from oreilly,

NET::FTP to retrieve files over HTTP?

2001-09-11 Thread Craig Paterson
is this possible? or is there another library i should use? I looked at the HTTP library but can't see how you would do it and save the file. -- Craig Paterson [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Index() lseek

2001-09-11 Thread Schelstraete Bart
Hello, Does somewhone knows what this means? LogFile::Index() lseek : : Bad file number I receive this after writing a little perl cgi program. I only receive that error when I use the ' $| = 1;' 'option'. Best regards, Bart -- To unsubscribe, e-ma

reffrence

2001-09-11 Thread nafiseh saberi
hi all. what is the main use of define refference for array ?? thanks. - Best regards. Nafiseh Saberi Iran - Shiraz Try to always happy and hopefull. The smooth sea never made a skillful mariner. Love your enemies , it will cause to t

Re:Seek issue

2001-09-11 Thread Jorge Goncalvez
Hi, I have this code: open FILE, "< $SYSLOG" or die $!; seek FILE,10,2; read FILE,$buf,10; if($buf =~ /success$/) And there is always nothing in $buf althought the file ends with

Re: How can i use Sybase with Perl ??

2001-09-11 Thread Ray Barker
http://dbi.perl.org/ -Original Message- From: Mcgregory Pinto <[EMAIL PROTECTED]> To: Perl Beginners <[EMAIL PROTECTED]> Date: September 11, 2001 3:04 AM Subject: How can i use Sybase with Perl ?? Hello ... How can i use sysbase with perl ?? Any information, sites, tutorials, etc ... ar