I have an idea for a freeware perl script that would be useful to just about anyone working on a project on the internet with lots of people from all over the...
1674
James Ross
perlscript@...
Feb 1, 2001 3:00 pm
one more question; what is a nice easy way to print a formated string to a file like: stmt Locn code statement 1 0000...
1675
Foster, Russell J.
RFoster@...
Feb 1, 2001 3:53 pm
Hans, I have to agree that there is not a lot of good documentation for non-geeks. Responses like this... ... ...are meaningless to me. I've been acused of...
1676
Foster, Russell J.
RFoster@...
Feb 1, 2001 3:54 pm
Tham, When I read in a text file to be parsed, I usually do it like this: @x = split (/\t+/,$line); This splits the items on the line by anything seperated by...
1677
Franki
frankieh@...
Feb 1, 2001 4:06 pm
$sc_scart_index_of_quantity = $scart{"quantity"}; The line above is in a script I am working on... Now this is simple I think Does it now state that this:...
1678
Charles K. Clarkson
c_clarkson@...
Feb 1, 2001 4:44 pm
Check out sprintf and printf. HTH, Charles K. Clarkson ... From: James Ross one more question; what is a nice easy way to print a formated string to a file...
1679
Don Smith
dmsmith@...
Feb 1, 2001 4:45 pm
Greetings, I'm trying to find an example of a script that will take the contents of a pipe delimited text flat file (potentially very large), and write it into...
1680
Charles K. Clarkson
c_clarkson@...
Feb 1, 2001 4:49 pm
split /PATTERN/,EXPR,LIMIT split /PATTERN/,EXPR split /PATTERN/ split If EXPR is omitted, splits the $_ string. If PATTERN is also omitted, splits on...
1681
daymobrew@...
Feb 1, 2001 6:09 pm
We implemented a mail sending script using the Net::SMTP module. It is not the best module but it works (with some quirks I'll describe below). The script: use...
1682
daymobrew@...
Feb 1, 2001 6:15 pm
Can you run the script from the command line to see what the real error is (or look in the error log)? Does the script compile okay? (run: perl -w -c...
1683
tomroth@...
Feb 1, 2001 7:43 pm
Hi, I have a script that writes to a log file like this: open(LOG,">>$logfile"); print LOG "$tries | <b>$name</b> downloaded <b>$filename</b> $logline\n"; ...
1684
slavik944@...
Feb 1, 2001 8:00 pm
Hello once again all, I have been assigned a project at work that requires the following. Access a webpage and gather the data from it. From what I ...
1685
Smith, Eric - WPAFB/Y...
eric.smith@...
Feb 1, 2001 9:26 pm
I'll answer the first question.... ... I'm guessing you just want the data displayed with the most recent at the top (and don't really care how it is logged). ...
1686
James Ross
perlscript@...
Feb 1, 2001 9:33 pm
http://acssun.pstcc.cc.tn.us/~cchilder/cst2665/notes/ch7.html This link will take you to a page that has some info on how to take data from html web pages. ......
1687
Kul
aka.Kul@...
Feb 1, 2001 11:15 pm
... Does your cgi script have a use strict in it? Have your tried running the script as a non cgi? Have you looked in the server error logs? Regards Kul...
1688
Kul
aka.Kul@...
Feb 1, 2001 11:23 pm
... I would recommend a little talked about facility in perl that is designed specifically for this exact function, its called FORMAT. It will do EXACTLY what...
1689
Charles K. Clarkson
c_clarkson@...
Feb 1, 2001 11:36 pm
From: <webmaster@...> ... Okay, maybe I'm too much a beginner, but what precisely is a session? ... Take a look at webmonkey: ...
1690
Charles K. Clarkson
c_clarkson@...
Feb 2, 2001 12:08 am
... From: "Hanson, Mark" <Mark.Hanson@...> ... Oh, sure!? Ask an easy question. :) Last time I checked there were about 580 members on this list; So...
1691
Charles K. Clarkson
c_clarkson@...
Feb 2, 2001 12:18 am
There is an example in the LWP module in your perl documentation or on the web: http://velocity.activestate.com/docs/ActivePerl/site/lib/LWP.html HTH, Charles...
1692
Charles K. Clarkson
c_clarkson@...
Feb 2, 2001 12:30 am
You might take a look at Matt's Script archive. Dowload a few script's and see how thier done. Then adapt them to your application. Guestbook and WWWboard look...
1693
Charles K. Clarkson
c_clarkson@...
Feb 2, 2001 12:39 am
... To ignore that specific line place this in your processing loop: while <DATA> { next if /^d/i; # skip if line starts with 'd' or 'D'. . . . } HTH, ...
1694
daymobrew@...
Feb 2, 2001 12:51 am
I'm going to describe how to get a page from a web site. Apologies if this is not the part you are stuck on. #!/usr/local/bin/perl -w use strict; use...
1695
Rob Swiger
robswiger@...
Feb 2, 2001 12:53 am
Get Blat! http://gepasi.dbs.aber.ac.uk/softw/Blat.html ... From: Mike Payne [mailto:theseus@...] Sent: Thursday, February 01, 2001 1:49 AM To:...
1696
Franki
frankieh@...
Feb 2, 2001 6:09 am
Well, I am not sure how to run it from a console, it is one file of about 10 or 15 in the whole script... It is set to run perl with -T at the end of it,, what...
1697
cajun@...
Feb 2, 2001 6:51 am
-T forces "taint" checks to be turned on so you can test them. Ordinarily these checks are done only when running setuid or setgid. It's a good idea to...
1698
Franki
frankieh@...
Feb 2, 2001 3:16 pm
Hi people, I just sent this message to the CGI group... but then I figured its more suitable for this group. I am having trouble working out the best way (or...
1699
Kai Hintze
kai_hintze@...
Feb 2, 2001 5:35 pm
... From: "Franki" <frankieh@...> To: <perl-beginner@yahoogroups.com> Date: Wed, 31 Jan 2001 01:41:43 +0800 Subject: RE: [PBML] Re: local ... That is...
1700
daymobrew@...
Feb 2, 2001 6:59 pm
I am using ActiveState's 5.6 distribution of Perl. I'm writing a Perl program to call InstallShield's PackageForTheWeb. Before I call PFTW, I have to modify...
1701
tomroth@...
Feb 2, 2001 7:45 pm
... Here's what finally worked! Thanks to all who made suggestions. The most recent log entry is still appended to the bottom of the log file but when the...
1702
Mike Payne
theseus@...
Feb 2, 2001 7:57 pm
Untested, but this should work. open(FILE,"file.txt"); @file = <FILE>; close(FILE); for (1..10) { shift(@file); } open(FILE,">file.txt"); foreach $_ (@file) {...