Hi Joseph:
Thanks very much for the feedback. Unfortunately for me, I've been
totally swamped with tasks totally unrelated to Perl. I've had virtually
no time to spend on this. I hope to have time this weekend to look at
Perl related activities (my wife may have other thoughts about that
ho
Thanks guys. You're the Best !
I used "time" instead of "localtime" and it's exactly what I need for now.
Perl is quickly becoming a very useful tool for me.
Thanks also for the doc info: perldoc -f time & perldoc Benchmark
- Stuart
Stuart Clemons/Westford/IBM wrote on 01/27/2004 07:50:30 PM
Hi all:
I'm trying to determine how long an system operation takes. Anyone know
of a simple way to do this ?
I wanted to establish the start time. Then run the operation. Then mark
the finish time. Then substract the start time from the finish time to
get an elapsed time. Here's the simp
Thanks Kevin for pointing out the Cookbook receipe. I dug out my Perl
Cookbook, 2nd edition. The "How to modify a file in
place without a temporary file" is still in Chapter 7, but it's now
receipe 17.
The discussion for this receipe is very interesting. I'm not sure if it's
legal to quote t
Thanks for the help. I just got back on-line. I'll give these a try.
Thanks again !
"Randy W. Sims" <[EMAIL PROTECTED]>
01/25/2004 03:19 PM
To
Jan Eden <[EMAIL PROTECTED]>
cc
[EMAIL PROTECTED], Perl Lists <[EMAIL PROTECTED]>
Subject
Re: How to put a variable value into a text file
On
Hi all:
I'm trying to put a variable value into a text file. I've tried a few
things with no success.
Anyone know how to do this ? Is it doable ? I'm pretty sure I read how
to do this somewhere, so I'm about to hit the Perl books to see if I can
find it.
Any help will be appreciated.
He
Thanks Jeff. I hope to try this out later today. I thought I had the
solution earlier this morning, but I ran into a problem. I hope this will
solve it ! Thanks again.
"Jeff 'japhy' Pinyan" <[EMAIL PROTECTED]>
01/23/2004 10:34 AM
Please respond to
[EMAIL PROTECTED]
To
[EMAIL PROTECTED]
Thanks Michael. I'll take a look at those modules and see if my Perl
skills are sufficient to understand how to use them. Thanks again.
EUROSPACE SZARINDAR <[EMAIL PROTECTED]>
01/23/2004 02:47 AM
To
[EMAIL PROTECTED]
cc
Perl Beginners <[EMAIL PROTECTED]>
Subject
RE: Need help comparing lin
Thanks very much Tim. I just did a quick test on my real file and it
worked perfectly.
I definitely still have a lot to learn with both Perl and regex's, so I
really appreciate the explanation as well. Though your script is very
compact, I learned a lot from it. Such as how you initialized
This newbie needs help with a regex. Here's what the data from a text
file looks like. There's no delimiter and the fields aren't evenly spaced
apart.
apples San Antonio Fruit
oranges Sacramento Fruit
pineapples Honolulu Fruit
lemonsCorona del Rey
Thank you Dan and Wolf ! With the suggested changes, my foreach loop
script now works as I hoped it would. (My first script did have a typo,
as you pointed out, though my logic was still wrong.) I'm glad to be able
to set aside my study of hashes for another day. I needed to get this
prob
This very green newbie would like to compare two files, let's say File1
and File2. I
want to put the difference from File2 only, into a new file, File3.
For example:
File1.txt
oranges
apples
bananas
File2.txt
apples
kiwi
bananas
The result I want for File3 is the new entry in File2, which is
Hi all:
This newbie would like to compare two files, let's say File1 and File2. I
want to put the difference from File2 only, into a new file, File3.
For example:
File1.txt
oranges
apples
bananas
File2.txt
apples
kiwi
bananas
The result I want for File3 is the new entry in File2, which
I kept working at it and was finally able to get rid of the unwanted lines
in the text file using a series of nested if's. It's certainly not
elegant, but it works !
Surely there's a more efficient way to get rid of the unwanted lines.
Anyway, here's what I came up with for now. This leaves
Hi all:
I'm trying to cleanup and format this text file of user names, so that I
have one column of user names. Here's the text file:
The request will be processed at a domain controller for domain FOOBAR.
Group name Misc
CommentThese are the FOOBAR users
Members
---
Hi all:
Just wondering what IDE/editor folks use for their Perl work ?
I'm looking for something for a W2K system that is easy to use (without
customization) and that has the basics (syntax highlighting, visual
debugging, something that shows variable values, the values in whitespace,
etc) wit
Hi all:
This newbie is back looking for some hints on how to handle this problem
in processing a file that has multiline records that look something like
this:
Name: Joe Blow
DataField1: x
DateField1: 07/07/77
DataField2: x
DateField2: 12/07/03
Name: Fi Doe
DataField1: x
DateFi
Hi drieux:
The link that failed for you, worked for me. That link led to this link
which had the code.
http://products.daviddurose.com/cgi-bin/download.cgi?script=sort
- Message from drieux <[EMAIL PROTECTED]> on Sun, 7 Dec 2003 09:04:51
-0800 -
To:
Perl Perl <[EMAIL PROTECTED]>
Subj
Thanks to all with the quick responses and possible solutions for splitting
my names list into one name per line. I've tried a couple of them and they
work great. You guys make it look so easy !
Using an array with 'Split' seemed to be a key part of the solution. I
guess I was sort of on th
Help. I'm a frustrated newbie who wants to use Perl to make my life easier.
The following simple task is only one small part of a program I'm trying to
put together to automate some things I currently do manually.
I have a file whose format looks like this:
name1 name2 name
20 matches
Mail list logo