arrays and formatting

2001-06-15 Thread steve
void context...i tried grouping the elements with only double-quotes around the tab but it didnt work. any suggestions would be appreciated. thanks steve ---Steve

Re: arrays and formatting

2001-06-15 Thread steve
hey, that helped tremendously. thanks alot and ill work more on cleaner more readable code just as soon as i know what i'm doin =) ---Steve - Original Message - From: "Ondrej Par" <[EMAIL PROTECTED]> To: "steve" <[EMAIL PROTECTED]>; <[E

CPAN

2001-04-22 Thread Steve
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 A newbie question on getting modules automatically from CPAN. I us the following line: perl -MCPAN -e shell; I get stuck when it wants to know what mirror I want to download from. What format should this be in. The man pages say Continent,Countr

Checking DOS timestamps

2001-05-29 Thread Steve
timestamp idea can't be done I can at least copy all Eudora related files somewhere else and go about wiping the temp directory. Any suggestions are greatly appreciated. Steve -BEGIN PGP SIGNATURE- Version: PGPfreeware 6.5.2 for non-commercial use <h

a bit of assistance on style

2001-05-31 Thread Steve
I have the following code that I wanna use to see if a file is older than today's date ( further along the line if it is I want to delete it but one thing at a time) It's a little rough and has a lot of lines in I use for debugging but if I get an idea if I am in the right direction. $filenam

Index a list

2009-07-10 Thread Steve
. What would be the best approach? Warm regards Steve -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Index a list

2009-07-10 Thread Steve
On Fri, 2009-07-10 at 13:13 -0700, Jim Gibson wrote: > On 7/10/09 Fri Jul 10, 2009 12:37 PM, "Steve" > scribbled: > > > Hi list memebers. I'm new here and I'm interested in learning about > > Perl. I've managed to get some programs together but

Registry Search Pattern & Replace String

2004-10-06 Thread Steve
I am not sure what the best way to tackle this problem so here it goes... I want to use the user's input to replace a string value in the registry. The problem is locating the subkey. There is one location that I need to change the string value: \\HKLM\SOFTWARE\Funk Software, Inc.\odyssey\cli

Registry Search Pattern & Replace String

2004-10-06 Thread Steve
I am not sure what the best way to tackle this problem so here it goes... I want to use the user's input to replace a string value in the registry. The problem is locating the subkey. There is one location that I need to change the string value: \\HKLM\SOFTWARE\Funk Software, Inc.\odyssey\cli

AnyEvent and POE

2013-02-03 Thread Steve
Good day, what's the difference between AnyEvent and POE? I know both them are framework for event programming, if I should choose one, which is more advanced in today? Thanks. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org htt

Re: Database interface

2013-02-04 Thread Steve
于 2013-2-5 6:12, Simon Alfredsson 写道: Is there a way to write a perl script that upon opening it in locally in web browser would present a interface to a database that is also stored locally? What modules (beyond DBI) would be easy to use? Could take a look at the ORM system DBIx::Class which

Re: How to deploy a Perl Application

2002-11-08 Thread Steve
It really just depends on the purpose of the application. If you need to do memory intensive tasks an individual machine app would be best. If you are doing anything else, I would go with web based applications.. Just my 2 cents... Steve "Todd Wade" <[EMAIL PROTECTED]> wrote

Julian Date

2002-11-08 Thread Steve
Can anyone tell me how to get the Julie Date via perl. I have an application that the user wants to have the julian date as part of a tracking number.. Thanks, Steve -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

newbie bash questions

2002-11-17 Thread Steve
place. I've found the $RANDOM builtin, but I need to create a random number that's 4 digits long. Any help is RIDICULOUSLY appreciated, THANKS!! Steve -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

newbie bash questions

2002-11-17 Thread Steve
mewhere, but not in the correct place. I've found the $RANDOM builtin, but I need to create a random number that's 4 digits long. Any help is RIDICULOUSLY appreciated, THANKS!! Steve -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

eval help needed.

2002-11-18 Thread Steve
I have this code running under Windows 98 using ActiveState: The file copy is working okay. What isn't working is the eval system call. Eudora is never executed and run, BUT the copy always happens. How can I get Eudora to be called? Is it possible at all? use File::Copy; use File::DosGlob q

RE: eval help needed.

2002-11-18 Thread Steve
Well what I want to do is backup my Eudora mailboxes, and I have that part working, but I wanna automate it so that every time I close Eudora the files get copied. A suggestion was that I could wrap the call to Eudora in an eval and just call Eudora from the Perl Script. At 07:23 PM 11/18/02

A localtime question

2002-07-13 Thread Steve
getting concatennated with 2002136 and I need 20021306. I've done a perldoc -f localtime but no joy. How do I get the day to be two digit? -- Steve -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: A localtime question

2002-07-13 Thread Steve
Thanks That worked perfectly. On Saturday 13 July 2002 17:50, George Schlossnagle wrote: > do > > $date = sprintf("%04d%02d%02d", $year,$mday,$mon); > > btw, ddmm is not sortable, you may want to use mmdd. > > George > > On Saturday, July 13, 2002,

regex question

2002-07-26 Thread Steve
The second if though I get this when I try to run the script: Use of uninitialized value in pattern match (m//) at ./conn_time.pl line 19 What I am looking to do is find a substring in $line I am using warnings,diagnostics and strict as well. Thanks -- Steve -- To unsubscribe, e-mail: [EMAIL

Re: regex question

2002-07-26 Thread Steve
t to have print? > > [I've copied you, but please respond to the list.] > > /\/\ark > > -----Original Message- > From: Steve [mailto:[EMAIL PROTECTED]] > Sent: Friday, July 26, 2002 4:20 PM > To: [EMAIL PROTECTED] > Subject: regex question

RE:regex question - Thanks

2002-07-27 Thread Steve
Thanks to John Krahn and Mark Anderson. I have the numbers I need now. From: "John W. Krahn" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Steve wrote: > > From what I have read from The Camel $1 should contain the matched text. > From that matched text I want to then

year as variable

2002-08-19 Thread Steve
"You are $age years old!\n"; when I execute this I get the following: What year were you born in? 1986<~~I typed this then pushed enter 2002 You are -1986 years old! I'm a total newbie to Perl, someone please help! I'm running Mandrake and my shell

regular expression help....

2002-09-11 Thread Steve
I have the following line in a log file: 09-07-2002 11:39:25.95 - Microsoft Dial Up Adapter log opened. The date and time will always change but the after that it's always consistent (well opened will sometimes be closed) I need to get the entire date in a variable and the entire time in a va

Weird problem with a regexp.

2002-09-17 Thread Steve
I have this snippet of code which works fine. $start_time has MM-DD- HH:MM:SS.MM which is what I want. # if ($line =~ /^(\d\d-\d\d-\d{4}\s+\d\d:\d\d:\d\d\.\d\d).+Connection Established.+(\d\d\d\d\d)/i) { $start_time = $1; printf ("Start Ti

Re: Weird problem with a regexp.

2002-09-17 Thread Steve
At 12:54 PM 9/17/02 -0700, you wrote: >Steve wrote: > > > I have this snippet of code which works fine. $start_time has MM-DD- > > HH:MM:SS.MM which is what I want. > > > > # > > > > if ($line =~ /^(\d\d-\d\d

Using Delta_Format in Date::Manip

2002-09-18 Thread Steve
I just read the help file for Date::Manip concerning Delta Format. Delta_Format seems to be what I want for what I want to do but I can't quite get to to work. I have this: my $diff_tot=&Delta_Format($diff,3,@format); @format is set to %MNt. But all I get printed out is "MNt". What I want

Re: Using Delta_Format in Date::Manip

2002-09-19 Thread Steve
At 12:40 PM 9/19/02 , you wrote: >Steve wrote: > > > I just read the help file for Date::Manip concerning Delta > > Format. Delta_Format seems to be what I want for what I want to do but I > > can't quite get to to work. I have this: > > > > m

Where can I get lots of modules?

2002-09-25 Thread Steve
7;t been able to find simply a database full of modules. Any links I should try? Thanks Steve -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Getting a line number from a file.

2002-09-26 Thread Steve
Is there a way to, as a file is read to print the line number you are on? - 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

RE: need some parsing ideas )

2002-09-26 Thread Steve
I am using Date::Manip to do my date/time differences. There may be something else but that's what I have used. At 12:31 PM 9/26/02 , you wrote: >Well here's an idea anyway... > >I wouldn't slurp the whole file at once, I would process line by line >assuming >all pertinent info per entry is a

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]

Microsoft Exchange

2002-09-30 Thread Steve
Can anyone tell me if it's possible to create a mailbox in Exchange 5.5 from perl? Thanks, Steve -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

File::Copy question

2002-10-07 Thread Steve
I am using Windows 98 and ActiveState Perl. I have a log file that after a certain size is truncated and reused. I have written a simple script to copy that file to another file using File::Copy. Is there a way to make sure the second file is appended instead of overwritten, using File::Copy

Looking to get description field from cisco config

2002-10-25 Thread Steve
Can anyone help me get the description field from a CISCO router config and posting it to a page... Thanks, Steve -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: search replace

2003-09-06 Thread Steve
perldoc perlre perldoc -f open On Sat, 2003-09-06 at 11:53, Pandey Rajeev-A19514 wrote: > Hi , > > How do I search replace text in a file from a perl script. i.e. by opening the file > in write mode and then do a search replace. > > I don't want to do a command line search replace. > > Regards

system function wont redirect output

2003-09-07 Thread Steve
hey, in my program im just trying to redirect the commands output but i get the error: sh: line 1: 1: command not found code: $return = system("tar czvf $tar $files > $logfile >2&1"); if i take out the > $logfile >2&1 , it works fine but i get that error with it in, but the werid thing is it did

Re: system function wont redirect output

2003-09-07 Thread Steve
ahhh nevermind it was a typo.. i hade >2&1 shoulda been 2>&1 , dont know how that got changed and how i didnt notice it sorry heh ;p On Sun, 2003-09-07 at 06:24, Steve wrote: > hey, in my program im just trying to redirect the commands output but i > get the error: > sh:

RE: how to create a file

2001-06-11 Thread Steve Howard
Quick comment: Make sure the quote types match when opening the file: open (FILE, ">text.txt"); -Original Message- From: - [mailto:[EMAIL PROTECTED]] Sent: Monday, June 11, 2001 10:15 PM To: [EMAIL PROTECTED] Subject: Re: how to create a file On Monday 11 June 2001 19:52, bdale16 wro

RE: Issuing rollback() for database handle being DESTROY'd without explicit disconnect().

2001-06-11 Thread Steve Howard
. You can use whatever makes sense in your program. Hope this helps. Steve Howard -Original Message- From: Brent Michalski [mailto:[EMAIL PROTECTED]] Sent: Monday, June 11, 2001 9:02 AM To: FLAHERTY, JIM-CONT Cc: Beginners (E-mail) Subject: Re: Issuing rollback() for database handle be

RE: require command?

2001-06-12 Thread Steve Howard
When you "rRequire" or "use" I believe it will only recognize a .pm extension. I'm pretty sure I've run into this before. (Someone correct me if I'm wrong.) When you say: require conf.cgi; it is looking for: conf.cgi.pm and not finding that. Hope this he

RE: use of split command

2001-06-12 Thread Steve Howard
ables } you are right, that is a very fast way to deal with files. If you have regularly delimited files, and would prefer to work with them using SQL like syntax, you might look at DBD::CSV for another alternative. Steve Howard -Original Message- From: Stephen Henderson [mailto:[E

RE: Remote command execution on NT and Solaris?

2001-06-12 Thread Steve Howard
ier) using the AT command similar to what I did above. None of those are pretty examples, but they are things I do because I have yet to find a pretty way to start execution on a remote box. However, let me know if you find somethingit'll make my life a lot easier as well. Steve Howard --

RE: use of split command

2001-06-12 Thread Steve Howard
ituation, as in most, it depends on what you need. Your point is well taken, but sometimes the best way is to load the entire file into an array. Steve Howard -Original Message- From: Evgeny Goldin (aka Genie) [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 12, 2001 7:03 PM To: [EMAIL PROTECT

RE: use of split command

2001-06-13 Thread Steve Howard
pe of the question asked when responding here. Steve Howard -Original Message- From: Jos Boumans [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 13, 2001 6:55 AM To: Steve Howard Cc: Stephen Henderson; [EMAIL PROTECTED] Subject: Re: use of split command I'd like to make a few adju

RE: More DBI hassels

2001-06-13 Thread Steve Howard
Can you give us an example of the code that is not connecting, or not working? It's pretty difficult to answer with no more than we have to go on. Steve Howard -Original Message- From: justin todd [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 13, 2001 7:22 AM To: Beginners (E

FW: use of split command - concession

2001-06-13 Thread Steve Howard
in less than three seconds and wrote the new contents to the new file. Granted, I am using a different OS than when I did that test before, but still, the difference was virtually indiscernible. Therefore, I'll concede my point about a significant performance difference. Steve H

Where to begin??!!??

2001-06-15 Thread Steve Bleazard
explain and wouldn't include some handy perlisms Enjoy, Steve Crystal Wrote... Hi all, I have a problem and I need to know where to begin. At the magazine I work for we have what are called "bingo cards" in the magazine that people can fill out and send back to us to get inform

b module

2001-06-15 Thread Steve Howard
nt me to a good walk-through example, or give me a good walk-through example of using B. And if I am not understanding right that B is a module to work with the C compiler to compile perl code into native executable programs please set me straight on that as well. Thanks in advance. Steve Howard

RE: Stuck in the Perl Beginners Panic-Zone!

2001-06-15 Thread Steve Howard
pathext=%pathext%;.pl You can set that permanently in the System applet in your control panel. once .pl appears in your pathext, you can actually start myprog.pl by typing: myprog and hitting return. NT will recognize it. Steve Howard -Original Message- From: Chris Garringer [mailto:[EMAIL P

RE: Need Perl/CGI/DBI/mysql Examples

2001-06-17 Thread Steve Howard
es your life much, much easier. Ok, end of my DBA diatribe. I might recommend also that you check out the DBI users group. I'm on that one, and there are very, very slick examples of DBI programming given by some very sharp people on that group. Just following the examples will help you a lot. Hope th

RE: Need Perl/CGI/DBI/mysql Examples

2001-06-17 Thread Steve Howard
http://www.peacecomputers.com/addressbook_toot-intro.html I know it involves reading, but it is step by step, commented, and documented, and you can follow it along to build a sound CGI app. Once you have that down you can build your own. Hope this helps again, Steve Howard -Original Message- From: [

FW: Perl DBI question

2001-06-20 Thread Steve Howard
is just one of the easier ways to do it. Hope this helps Steve Howard -Original Message- From: Kolene Isbell [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 20, 2001 4:36 PM To: [EMAIL PROTECTED] Subject: Perl DBI question I'm trying to print out statistics on a web page, bas

RE: Komodo

2001-06-22 Thread Steve Howard
Any version is large, and slow. Steve Howard -Original Message- From: Aaron Craig [mailto:[EMAIL PROTECTED]] Sent: Friday, June 22, 2001 5:47 AM To: [EMAIL PROTECTED] Subject: Komodo Has anyone tried the Komodo development environment from ActiveState? Must you have ActiveState perl i

RE: Paging the Data..

2001-06-26 Thread Steve Howard
ew little ideas, but the actual answer will vary between DBMS's. Enjoy, Steve Howard -Original Message- From: Abdulaziz Ghuloum [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 26, 2001 1:19 PM To: Rajeev Rumale; [EMAIL PROTECTED] Subject: Re: Paging the Data.. You can limit the numb

RE: Date in NT?

2001-06-26 Thread Steve Howard
further examples. If, however, you must drop a command through to the shell to pull a date from NT, the commands for date, and time are: date /t time /t Enjoy, Steve Howard -Original Message- From: Tom Yarrish [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 26, 2001 10:31 PM To: [EMAIL

RE: How is this doing what I want it too?

2001-06-30 Thread Steve Howard
) but that kind of flexibility is what I love about Perl. :-) Steve H. -Original Message- From: Brett W. McCoy [mailto:[EMAIL PROTECTED]] Sent: Saturday, June 30, 2001 9:56 AM To: Toni Janz Cc: [EMAIL PROTECTED] Subject: Re: How is this doing what I want it too? On Fri, 29 Jun 2001, Toni

RE: MYSql (fwd)

2001-06-30 Thread Steve Howard
You need DBI and DBD::MySQL They should be avaliable on CPAN, or if you are using ActivePerl or PPM they can be installed with just: ppm install DBI ppm install DBD::MYSQL That should be all you need to interact with MySQL. Steve Howard -Original Message- From: Ryan Gralinski [mailto

RE: creating columns on the fly

2001-07-05 Thread Steve Howard
n see from the print statement, the column names are now referencable in the @{$select->{NAME}} array. (Notice that $select is the statement handle. If you used $sth your array would be @{$sth->{NAME}} There are other properties that can be pulled in similar manners from the statement handles. Once y

RE: creating columns on the fly

2001-07-05 Thread Steve Howard
ition. I can't teach you all there is to know about SQL 7's system catalogues, but you have everything you need in sysobjects, and syscolumns, and sysindexes (although I usually use sp_helpindex to bring in information to create indexes on the fly). From there, it's really up to you ho

RE: Assigning '<' & '>' as chars to a variable

2001-07-05 Thread Steve Howard
Escape the characters. $target = $var1.'\<'.$var2.'\>'; See if those back slashes get you what you want to see. Steve H. -Original Message- From: Notabene [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 05, 2001 11:36 PM To: Perl Beginners Subject: Assigni

RE: Assigning '<' & '>' as chars to a variable

2001-07-05 Thread Steve Howard
Ok, it's getting late. you have to use double quotes. $target = $var1."\<".$var2."\>"; Sorry, Steve H. -Original Message- From: Notabene [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 05, 2001 11:36 PM To: Perl Beginners Subject: Assigning '<&

RE: connecting to sql database

2001-07-07 Thread Steve Howard
ld set rowcout. Oracle uses a virtual count column... Those examples will take a load off your network by controlling the number of rows the DBMS gives you. Now, I'm not sure how split will fit into what you're asking but just to give an example: my $example = qq{this, is, the, way, I,

RE: foreach examples/usage

2001-07-07 Thread Steve Howard
need the index of the array: foreach (0..$#array) { print $array[$_]."\n"; # now $_ is current of the count in foreach } or you can just go print $_ foreach (0..100); or the earlier examples: print "$_\n" foreach (@array); Does that help? Steve

Re: I need to "touch" a binary file

2001-07-11 Thread Steve Mayer
Bob, perldoc -f binmode Steve On Wed, Jul 11, 2001 at 05:26:49PM -0700, Bob Bondi wrote: > So, simple on Unix/Linux! Are there any solutions via Perl to "touch" a > binary file? ===== Steve Mayer

RE: 15 O'Reilly computer books free for download

2001-07-14 Thread Steve Howard
Illegal may be a moot point. The site is in Russia, and it is not likely any enforcement will ever do anything about it. Definitely not ethical, though. -Original Message- From: Pete Sergeant [mailto:[EMAIL PROTECTED]] Sent: Saturday, July 14, 2001 4:38 PM To: [EMAIL PROTECTED] Subject: R

RE: 15 O'Reilly computer books free for download

2001-07-14 Thread Steve Howard
hat I know about it, and I won't comment further. Back to programming. Steve H. -Original Message- From: Mark Winchester [mailto:[EMAIL PROTECTED]] Sent: Saturday, July 14, 2001 10:38 PM To: [EMAIL PROTECTED] Subject: RE: 15 O'Reilly computer books free for download ---

errors, any way to add clarity?

2001-07-15 Thread Steve MacMullin
but still. I've tried 'perldoc strict'- couldn't really think of anything else. Thanks in advance for your help. Steve -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Truth and SQL

2001-07-18 Thread Steve Howard
iptions of this technique, but I just thought I should call it out...just in case. Steve H. -Original Message- From: Daniel Falkenberg [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 17, 2001 9:00 PM To: [EMAIL PROTECTED] Subject: Truth and SQL Hi list, Basically I want to be able to do a

RE: Still can't get this !@#$%^&* to work

2001-07-21 Thread Steve Howard
it and see if that works for you. Steve H. -Original Message- From: Tim Musson [mailto:[EMAIL PROTECTED]] Sent: Saturday, July 21, 2001 10:00 PM To: [EMAIL PROTECTED] Subject: Re: Still can't get this !@#$%^&* to work Hey Tom, Wednesday, July 18, 2001, 10:25:02 AM, my MUA b

RE: Dates subtraction

2001-07-22 Thread Steve Howard
e to use a hash like I did with the localtime function, I just like working with the hash slices. Customize that to your purpose. Hope this helps, Steve Howard -Original Message- From: Ackim Chisha [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 22, 2001 8:50 AM To: [EMAIL PROTECTED] Subject: D

RE: Dates subtraction - one more simplification

2001-07-22 Thread Steve Howard
further manipulations of system dates to get there. Steve H. -Original Message- From: Jeff 'japhy/Marillion' Pinyan [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 22, 2001 9:37 AM To: Steve Howard Cc: Ackim Chisha; [EMAIL PROTECTED] Subject: RE: Dates subtraction On Jul 22, Stev

RE: newbie: Date::Calc Question

2001-07-23 Thread Steve Howard
the easiest in this case, but Date::Calc is still a very cool tool for working with dates. Read through it's perldoc - it is a very good doc, and you will see what kind of tools it really offers. Hope this helps, Steve H. -Original Message- From: Groove Salad [mailto:[EMAIL PROTECTED]

RE: newbie: Date::Calc Question

2001-07-23 Thread Steve Howard
like this: opendir (TEMP, "$ENV{TEMP}"); foreach (readdir TEMP){ $ddd = -M "$ENV{TEMP}/$_"; $ddd = int($ddd); print "$_ is $ddd old \n" if ($ddd >=7); } In that case, that's quite a bit easier than using Date::Calc. Steve H.

RE: how to get date before say 20 days ?

2001-07-24 Thread Steve Howard
Date::Calc has functions to make that very easy. Steve H. -Original Message- From: shweta shah [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 24, 2001 6:24 AM To: [EMAIL PROTECTED] Subject: how to get date before say 20 days ? hello, is there something in perl through which i can get

RE: output of a command to a file

2001-07-24 Thread Steve Swords
the man page for the open() function has a section on doing exactly what your asking for... -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: UNIX install of Term::ReadKey errors

2001-07-24 Thread Steve Howard
Someone may be equipped to answer this on this list, but if not, I'm sure you could get it answered on the DBI users group. I haven't seen this post on that list, have you tried them? Steve H. -Original Message- From: Webster, Murray [mailto:[EMAIL PROTECTED]] Sent: Tuesda

Which perl book is the best for a newbie?

2001-07-25 Thread Steve Mallett
"foreach" statement which *wasn't* covered in the Sam's book until the next chapter! Bleh. Not until I felt I had to cheat a little by looking at the example answer did I discover this. Not good. I found & bought Learning Perl the next day. I'm happy with it thus

RE: Script for Sheduling jobs on NT

2001-07-28 Thread Steve Howard
, you might include include a line as the last line in your script to schedule the next run for 5 minutes after after current time or something like that. Just use shell or back ticks to run the line to schedule the next run. Steve H. -Original Message- From: Steven Yarbrough [mailto

re: Script for Sheduling jobs on NT

2001-07-28 Thread Steve Howard
\\remotemachine 23:30 /every:monday c:\tasks\myscript.pl Type at /? to get all the options. Steve H. -Original Message- From: SunDog [mailto:[EMAIL PROTECTED]] Sent: Saturday, July 28, 2001 1:48 PM To: Ackim Chisha Cc: [EMAIL PROTECTED] Subject: Re: Script for Sheduling jobs on NT Hey Ackim, The

Does optimizing Perl speed up Perl programs?

2001-07-30 Thread Steve Snyder
Hello. I am a total perl newbie who is running perl v5.6 on a RedHat Linux v7.1 system. I am using a perl program as a Web proxy redirector, a program that I would very much like to improve the performance of. If I improve the performance of perl itself (by building it with different compile

RE: Reading file line by line regardless of type of end-of-line?

2001-08-03 Thread Steve Howard
unless ($_ eq ''); } Like I said, ugly, but it will work and give you a consistent file format to work with in the second loop Steve -Original Message- From: Sherlock Holmes [mailto:[EMAIL PROTECTED]] Sent: Friday, August 03, 2001 7:33 AM To: [EMAIL PROTECTED] Sub

RE: If Statement won't work

2001-08-05 Thread Steve Howard
en in this. Steve H. >From: [EMAIL PROTECTED] >To: [EMAIL PROTECTED] >Subject: If Statement won't work >Date: Thu, 2 Aug 2001 11:22:25 -0500 > >Can anyone tell me why my if statement refuses to work? It is really >simple. I can't understand it. > >$winner

RE: passing values to sub

2001-08-05 Thread Steve Howard
{numhits} $lh{maxhits} and $lh{hits} Just a note. Your method would work, but it was not a hash. Steve H. -Original Message- From: Mike Rapuano [mailto:[EMAIL PROTECTED]] Sent: Sunday, August 05, 2001 3:40 PM To: Paul Johnson; Birgit Kellner Cc: [EMAIL PROTECTED] Subject: RE: passing values to

RE: If Statement won't work

2001-08-05 Thread Steve Howard
ike I said, I made it work by deleting the line and re-typing it, but when this message popped up on this list, I knew someone other than just me had seen this problem and I decided to see if I could find any common thread between what I had seen, and the problem this person was having. St

RE: DBI Perl and rows...

2001-08-07 Thread Steve Howard
meter on the URL to let you know which rows were being searched for next. That will allow you to page through as the user moves forward or back through the results. Check your DBMS's docs for how to page or limit return from a query. Steve H. -Original Message- From: Daniel Falke

RE: DBI Perl and rows... - another possibility

2001-08-07 Thread Steve Howard
ess efficient than the built in ways most DBMS's have, but will work if you do not have such a method available, and is usually better than trying to pull an entire result set across a network, then limit it after it has already arrived to your script. Have fun, Steve H. -Original Mes

RE: DBI for Access

2001-08-08 Thread Steve Howard
, yes. I do it occassionally and have even migrated data off of Access onto other DBMS's so I can say yes it is possible. You might monitor the DBI users' group also. Some very slick examples of DBI programming go across that group. Steve H. -Original Message- From: E. Ala

RE: printing to a filehandle

2001-08-14 Thread Steve Howard
You need to quote "blah". $test = "blah"; -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 14, 2001 6:04 PM To: [EMAIL PROTECTED] Subject: printing to a filehandle I need some help figuring out where I'm going wrong with trying to print to thi

Module Administration question

2001-08-15 Thread Steve Starer
I ended up with a module useful mostly for win32, named DBD::ADO. Just removing it from the tree seemed to be insufficient. There doesn't seem to be any way to remove it via the CPAN interactive shell. Any suggestions will be gratefully appreciated. Thanks for the help. Regards, Steve Starer

RE: Module Administration question

2001-08-15 Thread Steve Starer
t consider my perl skills strong enough to be a contributor yet. Then again, everybody learns to walk the same way... Thanks again, and perhaps you can follow up with some tips on getting rid of unwanted Perl mods. Regards, Steve Starer -Original Message- From: Thomas A. Lowery [mailt

RE: I have a list of Directories and FIles, how do I sort them out

2001-08-15 Thread Steve Howard
It might be helpful if you posted at least the part of the code that is having trouble. it's difficult to say what went wrong when we can't really see what is even happening. Steve H. -Original Message- From: Vincent Lim [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 15,

RE: question from beginner

2001-08-15 Thread Steve Howard
entries. If you need to search for yesterday's entries, or take input for how many days etc. you'll have to work on the date searched for, but I might recommend that you look at the Date::Calc module if you have much more than a very simple date evaluation. Does this answer th

RE: Regular expresions

2001-08-16 Thread Steve Howard
To: '[EMAIL PROTECTED]' Subject: RE: Regular expresions i think the /D switch is best... $str = 'YD*&h9dhiudhc9s9123abc&&%$&()_#'; print $str, "\n"; $str =~ s/\D//g; print $str, "\n"; > -Origin

RE: Perl and MS Access

2001-08-16 Thread Steve Howard
and DBD work together. Perldoc DBD::ODBC will give you connection specific information for ODBC. You almost have to read those and put your hands on it and either succeed, or run into problems however before there is much specific that can be offered in this forum. Steve H. -Original Message

RE: PERL IS NOT A HIGH LEVEL LANGUAGE

2001-08-17 Thread Steve Howard
pinions such as those you gave know about the real world. Steve -Original Message- From: Jon Acierto [mailto:[EMAIL PROTECTED]] Sent: Friday, August 17, 2001 11:47 AM To: [EMAIL PROTECTED] Subject: PERL IS NOT A HIGH LEVEL LANGUAGE Hello Guys It's me again, After getting all the fee

RE: html to SQL script

2001-08-18 Thread Steve Howard
Good info, and I would only add one more mailing list to what is given: DBI users group. Find them on CPAN or ACTIVESTATE.COM to subscribe, Just monitor them for a while, there are some very slick examples you can pick up on. Steve H. -Original Message- From: jim-ryan [mailto:[EMAIL

RE: Perl script editor for NT/2000

2001-08-20 Thread Steve Swords
www.google.com is a good place to search for anything -Original Message- From: TOM TURPIN [mailto:[EMAIL PROTECTED]] Sent: Monday, August 20, 2001 8:21 AM To: '[EMAIL PROTECTED]' Subject: Perl script editor for NT/2000 Could someone suggest a good editor for writing scripts with? Tom T

RE: string "cut"

2001-08-21 Thread Steve Howard
If you only have one equals sign dividing what you don't need, and what you are looking for: $string = "interfaces.ifTable.ifEntry.ifInOctets.4 = 954819405"; ($key, $val) = split /=/, $string; Steve H. -Original Message- From: Ask Bjoern Hansen [mailto:[EMAIL PROTECTED]

Re: How to read the second column of a file

2001-04-20 Thread Steve Lane
e-liner you can run at the command line: $ perl -lane 'my $FILE = $F[1]; print "i got $FILE"' file.txt > I will have a loop going over and reassingn the next > name to the same variable. i'm having trouble parsing this. -- Steve Lane <[EMAIL PROTECTED]>

  1   2   3   4   5   6   7   8   9   10   >