Newbie Intro

2002-11-08 Thread Michael J Alexander
Mike here. Just wanted to introduce myself. I'm teaching myself Perl, and discounting the Pascal class I took in college 13 years ago, I'm a newbie at this language stuff . I am working on CCNA cert. Windows XP is my main OS, but I toy around with any Linux Distro I can get my hands on. I chos

Ignore. Just Testing

2002-11-08 Thread Michael J Alexander
Tried to send something yesterday but it didn't go through. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.408 / Virus Database: 230 - Release Date: 10/24/2002 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman

Re: Redirection?

2002-11-08 Thread Michael Kelly
On Fri, Nov 08, 2002 at 02:18:31PM -0800, Carol Nguyen wrote: [snip] > > > http://www.mysite.com/index.html";> > > > > this should redirect to the new url. Or just use HTTP headers to redirect (almost) instantly: print "Location: http://www.mysite.com/index.html\n\n";; That's just how thi

Re: set date variable and range

2002-11-08 Thread John W. Krahn
Shaunn Johnson wrote: > > --thanks for the reply: > > --let me rephrase my question this way. i have just installed > --the Date::Manip module. i have a test that looks like this: > > [test script] > > #!/usr/bin/perl -w > > use strict; > use Date::Manip; > > my $date = ParseDate("today");

RE: set date variable and range - correction

2002-11-08 Thread Johnson, Shaunn
--sorry about this: --while, yes, i do need all 4 digits for the year, i also have to --get the entire month ... what i have below give me up to the --date of that month. SO ... what i really need is to work out --the time so that i can get the full first month, count 3 months --up to the f

RE: set date variable and range

2002-11-08 Thread Johnson, Shaunn
--thanks for the reply: --let me rephrase my question this way. i have just installed --the Date::Manip module. i have a test that looks like this: [test script] #!/usr/bin/perl -w use strict; use Date::Manip; my $date = ParseDate("today"); my $pastdate = DateCalc($date, "-3 months"); print

Re: Help with Hash values and variable interpolation

2002-11-08 Thread badchoice
> 112.58.26.32.32770 > 192.35.51.30.53: 64596[|domain] (DF) > 112.58.26.32.32770 > 192.100.59.110.53: 24685 [1au][|domain] (DF) > 112.58.26.4.2506 > 216.148.227.69.80: . ack 3280436924 win 2920 (DF) > 112.58.26.4.2506 > 216.148.227.69.80: . ack 1759 win 1162 (DF) > 112.58.26.4.2498 > 66.207.130.

Re: Redirection?

2002-11-08 Thread Carol Nguyen
Kurtis, I'm not sure if there are html tags in your index.cgi page. If there are, here is what we would use: http://www.mysite.com/index.html";> this should redirect to the new url. hope this helps. Carol --- Kurtis <[EMAIL PROTECTED]> wrote: > Hello All, > > Is their a function t

Re: sort two patterns, control structure help needed

2002-11-08 Thread badchoice
perl -ne '$;[$_>99].=$_}{print@' infile.txt > outfile.txt :) if no additional sorting is required -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Redirection?

2002-11-08 Thread Timothy Johnson
I'm not sure off the top of my head, but there is a [EMAIL PROTECTED] mailing list that might be able to help you better. -Original Message- From: Kurtis [mailto:kurtis@;asdal.net] Sent: Friday, November 08, 2002 1:50 PM To: [EMAIL PROTECTED] Subject: Redirection? Hello All, Is the

RE: removing modules

2002-11-08 Thread Scott Lutz
Never mind. A small case of the Mondays :o) scott lutz -Original Message- From: Scott Lutz Sent: November 8, 2002 10:37 AM To: Beginners (E-mail) Subject: removing modules Does anyone have experience with removing modules installed using CPAN? A Debian machine seg faults everytime I tr

removing modules

2002-11-08 Thread Scott Lutz
Does anyone have experience with removing modules installed using CPAN? A Debian machine seg faults everytime I try to install a module, and so I want to try to remove the Compress::Zlib module. Thanks for the help! scott lutz -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

Redirection?

2002-11-08 Thread Kurtis
Hello All, Is their a function that can redirect a brower? For example, 1) Someone goes to http://www.mysite.com/cgi-bin/index.cgi 2) index.cgi is processed and calls "redirect" function 3) Then the person is sent to http://www.mysite.com/index.html ? Thanks in advance, Kurtis

RE: Strange behaviour

2002-11-08 Thread david
Jessee Parker wrote: > Honestly I'm stuck. If I kill the process after it does it's job, I'm > thinking that there is no residual from the previous program. When I do > a ps -A there is only 1 program left to kill after it finishes > processing. I kill this process and run my script. Whenever the

Newbie with a question

2002-11-08 Thread Carol Nguyen
Hello, I just subscribed to this list 2 days ago. I am pretty new to perl. I have one question: I need to write a little script to auto-start the solaris web server when it crashes. How am I about to do this with perl? Any suggestion? This script basically checks the web application every 15

RE: set date variable and range

2002-11-08 Thread Beau E. Cox
Hi - A silly question is one not asked... This script: #!/usr/bin/perl use strict; use warnings; # scalar context - prints 'readable' date my $now = localtime; print "$now\n"; # list context - returns a list of date parts my @parts = localtime; p

set date variable and range

2002-11-08 Thread Johnson, Shaunn
Howdy: Silly perl question: I have a script where I'd like to set three date variables and pass them along in some sql script, but I'm having a problem trying to define the date variables using localtime(). [snip example] #!/usr/bin/perl use strict; use Date::Format; my @lt = localtime(time);

RE: Julian Date

2002-11-08 Thread Brent Michalski
while that will print the date, it is not the julian date. The julian date is the number of days so far this year. Instead, try this: use Time::JulianDay $jd = julian_day($year, $month_1_to_12, $day) or this $jd = local_julian_day($seconds_since_1970);

folder size

2002-11-08 Thread Thomas Browner
Can some one tell me how to get the folder in perl. I will getting this from windowns nt. Thomas

Portable Document Format Files

2002-11-08 Thread Ned Cunningham
Does anyone have any ideas on how to display PDF files? What modules to use? Are there any sample scripts? Thankx Ned Cunningham POS Systems Developer Monro Muffler Brake & Service 200 Holleder Parkway Rochester, New York 14615 (585) 647-6400 ext 310 [EMAIL PROTECTED]

RE: Julian Date

2002-11-08 Thread Aman Thind
Hi Steve, All Herez how you do it : $sec = (localtime())[0]; $min = (localtime())[1]; $hour = (localtime())[2]; print "Time => $hour : $min : $sec\n"; $day = (localtime())[3]; $month = (localtime())[4] + 1; $year = (localtime())[5]; $year = $year + 1900; print "Date => $month \\ $day \\ $year";

flat file db (do I need mysql?)

2002-11-08 Thread Patricia Hinman
Hi everyone, I just wrote a script that reads yahoo directories, and writes to a temp txt file the portion of direcetories it's currently working with. Then copies that temp file to a completed log file, and grabs the next subcatagory to work with. It continues till no more urls are given to fe

Mail::Sender Problem. Can Some Help Me?

2002-11-08 Thread Palm Optins
Hello Everyone, I setting up a list mailer using mysql and mail::Sender. The mailer uses Subscribed email address and Contact Address. The mail is suppose to go to the subscribe address. For some reason. It keeps going to the contact address. The code I'm using is below. I tried changing the

RE: sort two patterns, control structure help needed

2002-11-08 Thread Aman Thind
Hi Alan , All Just in case the data structures and the sort routines intimidate you , the following hack works too : #usage : [perl.exe \ perl] reorder.pl infilepath reorderedOutFilePath open INFILE, @ARGV[0] or print "can't open INFILE!" ; open OUTFILE, ">@ARGV[1]" or print "can't create OUTFIL

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]

Re: How do I update a single instance of a repeatable element in a xml document?

2002-11-08 Thread Melanie Rouette
Anybody got an idea on this? It would be really helpful. Melanie Rouette wrote: Hi, If I have something like: Father Brian Mother Elisabeth Sister Judy brother Lathan and I want to update the Sister Judy element only, based on the fact that I want to update only the element that

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 in message news:

shmget

2002-11-08 Thread A. Johnson Jeba Asir
Hello all, Can some one point me to some detail docoument/examples of perl IPC?. I have looked at man perlipc. But that dosent speak much about my requirements. I got some example for the same in perl distribution (eg/sysvipc/ipcshm). When I run the script it reported as follows %i

Re: sort two patterns, control structure help needed

2002-11-08 Thread Sudarshan Raghavan
On Fri, 8 Nov 2002, Alan C. wrote: > Hello, > > This must be easy. But I've not yet enough experience with Perl's control > structures. > > perl mysort.pl infile.txt > outfile.txt > > The stack of numbers with colons below reside within infile.txt > > 120:2 > 126:2 > 13:15 > 140:3 > 14:3 > 141

Re: sort two patterns, control structure help needed

2002-11-08 Thread John W. Krahn
"Alan C." wrote: > > Hello, Hello, > This must be easy. But I've not yet enough experience with Perl's control > structures. > > perl mysort.pl infile.txt > outfile.txt > > The stack of numbers with colons below reside within infile.txt > > 120:2 > 126:2 > 13:15 > 140:3 > 14:3 > 141:3 > 14:3

Re: Declaring a Hash

2002-11-08 Thread Paul Johnson
On Fri, Nov 08, 2002 at 01:39:31AM -, Peter Scott wrote: > In article , > [EMAIL PROTECTED] (Timothy Johnson) writes: > > > >As far as I know, the #1 reason why people declare data structures > >explicitly is to avoid "uninitialized" messages while using warnings. > > For scalars, sure, altho

sort two patterns, control structure help needed

2002-11-08 Thread Alan C.
Hello, This must be easy. But I've not yet enough experience with Perl's control structures. perl mysort.pl infile.txt > outfile.txt The stack of numbers with colons below reside within infile.txt 120:2 126:2 13:15 140:3 14:3 141:3 14:3 15:11 My task or goal is to get each of them lines over i

RE: Population of variables in hash values...

2002-11-08 Thread Timothy Johnson
Only because it's easier to read. If I was doing a large program, then it might make sense to use the reference method, but otherwise eval is more intuitive to me. -Original Message- From: Todd W [mailto:trw3@;uakron.edu] Sent: Thursday, November 07, 2002 7:36 PM To: [EMAIL PROTECTED] Su

Re: win32::File

2002-11-08 Thread John W. Krahn
Mark Goland wrote: > > Hi all, Hello, > I am trying to do directory traversal on NTFS. When I test fileif its a > directory or a regular file. It does not seem to work. -d anf -f test's dont > seem to work as well. Can someone please look over my error. This behavior is described in the readdir

RE: win32::File

2002-11-08 Thread Aman Thind
Hi Mark , All I have written plenty of scripts involving directory traversals and -d \ -f have never let me down. One of my scripts runs daily on an NT machine. The line I use for distinguishing between files and directories is : $type = "f" unless ((-d "$lclpath\\$name")&&($type="d")); The $lc

RE: Strange behaviour

2002-11-08 Thread Jessee Parker
Honestly I'm stuck. If I kill the process after it does it's job, I'm thinking that there is no residual from the previous program. When I do a ps -A there is only 1 program left to kill after it finishes processing. I kill this process and run my script. Whenever the 2nd run occurs, it acts as if