Re: Searching & Storing

2002-09-29 Thread John W. Krahn
Henry Wong wrote: > > > Henry Wong wrote: > > > > > > I am wondering if you guys can help me out here: > > > I have a log file containing information like this: > > > > > > THU DEC 6 14:55:00 2001111222333444 > > > FRI DEC 7 01:00:00 2001 555666777888 > > > SAT DEC 8

Re: problem with overlapping matches and while m//g

2002-09-29 Thread Sudarshan Raghavan
On Fri, 27 Sep 2002, nkuipers wrote: > Hello, > > I am trying to get the positions of every instance of a given substring within > a given superstring (DNA sequence), and currently have a > > while ( $super_string =~ m/${sub_string}/gi ) { ... } > > construct. > > I was under the impression

Re: Realtime output to the browser

2002-09-29 Thread Janek Schleicher
Mark Schouten wrote at Fri, 27 Sep 2002 14:44:38 +0200: > I'm writing some code to autmatically retrieve a file if the local file > is older than a day. > > I would like to output some data to the browser while this script is > running instead of waiting untill the script is done. > > Here's th

Re: Problem with returned Array.

2002-09-29 Thread Ramprasad A Padmanabhan
Frederic Trudeau wrote: > Greetings all. > Hi > Im using Cyrus::IMAP::Admin module to list mailboxes on my system. After I have >authenticated sucessfully, I run this command, that is suppose to give me a list of >all mailboxes : > > @mailboxes = $client->list('*'); > > Just for debugging p

Writing an app for VT220 Clients..

2002-09-29 Thread Ciaran Finnegan
Hi, Firstly, thanks to everyone on the list for getting me this far. I'm looking for a bit of advice. I've got a script running which presents VT220 Clients (handheld devices with barcode readers, 802.11 radios, 12x20 LCD Display running DOS, an IP Stack and a VT220 Client) with menus allowing

Re: How Hard

2002-09-29 Thread John W. Krahn
Andrewmchorney wrote: > > Hello All: Hello, > I have taken a little classroom work in perl. I believe it is very possible > to write a perl script to read a text file, strip the carriage return and > linefeed and write it to another file. > > How would the script look? If you are running thi

Re: Searching & Storing

2002-09-29 Thread Henry Wong
Ok, i've decided to skip using the Date::Manip coz its giving me lots of problems. Is there a way to compare dates (e.g. Thu Jun 20 12:00:00 2002) and sort them in order? What i've always wanted is to sort them, and subsequently using User's input of Start & End date to capture relevant logs as ex

RE: How Hard

2002-09-29 Thread nkuipers
>I have taken a little classroom work in perl. I believe it is very possible >to write a perl script to read a text file, strip the carriage return and >linefeed and write it to another file. > >How would the script look? Here's one way... my $infile = 'path/file.ext'; open IN, "< $infile" or d

RE: Searching & Storing

2002-09-29 Thread nkuipers
>= Original Message From "Henry Wong" <[EMAIL PROTECTED]> = >Hi all, I tried using the below codes provided but i got an error saying >"Can't locate Date/Manip.pm in @INC...etc". I reckon that the Date::Manip do >not exist in my library. Any other alternatives for my problem below? If you

Re: Searching & Storing

2002-09-29 Thread Henry Wong
Hi all, I tried using the below codes provided but i got an error saying "Can't locate Date/Manip.pm in @INC...etc". I reckon that the Date::Manip do not exist in my library. Any other alternatives for my problem below? Regards, ~ HENRY WONG ~ > Henry Wong wrote: > > > Hi all, > > > > I am

How Hard

2002-09-29 Thread AndrewMcHorney
Hello All: I have taken a little classroom work in perl. I believe it is very possible to write a perl script to read a text file, strip the carriage return and linefeed and write it to another file. How would the script look? Thanks, Andrew -- To unsubscribe, e-mail: [EMAIL PROTECTED] Fo

Re: File::Copy

2002-09-29 Thread Jeff 'japhy' Pinyan
On Sep 29, Steve said: >Is there a File::Copy available for ActiveState Win32? Yes; it is a standard module. -- Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/ ** Look for "Regular Expressio

File::Copy

2002-09-29 Thread Steve
Is there a File::Copy available for ActiveState Win32? - The three most dangerous things are a programmer with a soldering iron, a manager who codes, and a user who gets ideas. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

who can help?

2002-09-29 Thread Mariusz
Hi, I know this is not a question about perl cgi but I don't know where to turn. I do most of my stuff using Macromedia's Dream and Fireworks. Does any of you use Fireworks? If so, how can I limit a hotspot to only one frame on a multiframe graphic? Thank you for any suggestions as to where I c

Re: Inserting a line of text into a file

2002-09-29 Thread John W. Krahn
Griggs Rob wrote: > > Im trying to write a line of text to a file but when i do this the text is > written but onto the front of the next line. I want it to write the text > into the file on its own line after the found line! > > The below code is replacing the regular expression with the line o

Inserting a line of text into a file

2002-09-29 Thread Griggs Rob
Im trying to write a line of text to a file but when i do this the text is written but onto the front of the next line. I want it to write the text into the file on its own line after the found line! The below code is replacing the regular expression with the line of text (which is not what i wan

RE: Filehandle modes

2002-09-29 Thread Griggs Rob
Forget it, typo!! Thanks! > -Original Message- > From: Griggs Rob [mailto:[EMAIL PROTECTED]] > Sent: 29 September 2002 22:22 > To: '[EMAIL PROTECTED]' > Subject: Filehandle modes > > > Hi, > > Im trying to read a file and once i have found a particular > line using a > regex i want

Filehandle modes

2002-09-29 Thread Griggs Rob
Hi, Im trying to read a file and once i have found a particular line using a regex i want to write a line of code immediately after that line. Is it the filehandle mode that i am using "+>" that is incorrect?. If this is wrong, what is the easiest way to do it? Im trying with the code below but

Re: Problem with returned Array.

2002-09-29 Thread Jeff 'japhy' Pinyan
[corrected top-posting] On Sep 29, Frederic Trudeau said: >From: "nkuipers" <[EMAIL PROTECTED]> > >> @mailboxes is an array of array references. You have to dereference >> every element before printing it. >> >You are speaking another language =) >Could you please be more specific, or better, i

Re: Problem with returned Array.

2002-09-29 Thread Frederic Trudeau
You are speaking another language =) Could you please be more specific, or better, include an example ? Thanks a lot for your support. - Original Message - From: "nkuipers" <[EMAIL PROTECTED]> To: "Frederic Trudeau" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Sunday, September 29,

RE: Problem with returned Array.

2002-09-29 Thread nkuipers
@mailboxes is an array of array references. You have to dereference every element before printing it. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Problem with returned Array.

2002-09-29 Thread Frederic Trudeau
Greetings all. Im using Cyrus::IMAP::Admin module to list mailboxes on my system. After I have authenticated sucessfully, I run this command, that is suppose to give me a list of all mailboxes : @mailboxes = $client->list('*'); Just for debugging purpose, I printed the size of the array... Th

Re: system call troubles...

2002-09-29 Thread Jenda Krynicky
From: david <[EMAIL PROTECTED]> > Jenda Krynicky wrote: > > > From: david <[EMAIL PROTECTED]> > >> Chris wrote: > >> > >> > # ** ** > >> > # print "Trying to Run -- system $playerApp ($webCast):\n"; > >> > # system $playerApp, ($webCast); > >> > # ** ** > >> > > >> > # ** ** > >> >print "

Re: Breaking out of STDIN Question

2002-09-29 Thread Jenda Krynicky
From: "John W. Krahn" <[EMAIL PROTECTED]> > Grant Hansen wrote: > > > > Can someone tell me what is wrong with this. > > > > Upon entering a 0 I want to break out of the loop and continue > > processing the data in @data. > > > > $quit = 0; > > while (! $quit) { > > chomp(@data = );; > >