Re: Perl Beginners Portals

2003-10-02 Thread Todd Wade
"R. Joseph Newton" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Todd Wade wrote: > > > I'm willing to pester the site owners to let you do the site. But it will > > probably take more than just you and I. The lack of responses to your OP &g

Re: easiest `cat` in perl

2003-10-02 Thread Todd Wade
"Gary Stainburn" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Thursday 02 Oct 2003 10:25 am, Owen wrote: > > On Wed, 01 Oct 2003 23:14:00 -0700 > > > > Bryan Harris <[EMAIL PROTECTED]> wrote: > > > What I'm interested in is what's the easiest way to print the contents of > > >

Re: Perl Beginners Portals

2003-09-30 Thread Todd Wade
"Shlomi Fish" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Hi all! > > I believe learn.perl.org is very lacking: > > 1. Its design is ugly. > agreed > > 2. No links to many important online resources such as tutorials, books, > article collections, mailing lists, web forums, e

Re: Converting PHP file

2003-09-16 Thread Todd Wade
"Mike Blezien" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Not having much background in PHP, that's what I am trying to figure out, is how > to grab the file after it's been generated by the PHP script, to create the > static HTML file... I know this is not the proper list for t

Re: ? about this NG speed.

2003-09-10 Thread Todd Wade
"Dennis G. Wicks" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > > On Wed, 10 Sep 2003, Ramprasad A Padmanabhan wrote: > > > Date: Wed, 10 Sep 2003 14:02:07 +0530 > > From: Ramprasad A Padmanabhan <[EMAIL PROTECTED]> > > To: [EMAIL PROTECTED], [EMAIL PROTECTED] > > Cc: 'Rodney Wis

Re: shared data in a class

2003-07-09 Thread Todd Wade
"Paul Archer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > The answer to this is probably out there somewhere, but I haven't run across > it yet, so a pointer to a webpage/tutorial/FAQ/whatever would be fine... > > In other words, let's say $main_display is the object that repres

Re: Cookies rejected

2003-06-25 Thread Todd Wade
"Aman Thind" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi All > > On receiving no reply to my previous post, I myself struggled a bit and came > up with the following code to login to the site : > > -- > use LWP::UserA

Re: Parsing .csv file

2003-06-25 Thread Todd Wade
"Dave Sparrow" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Take a look at Text::CSV or Text::CSV_XS > Ah, but here's the kicker... > Most people who I will give this script to will be running Perl 5.6 and WILL > NOT have the ability to use any external modules, even those such

Re: CGI remote_user versus user_name

2003-06-25 Thread Todd Wade
"Dan Muey" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > CGI's remote_user() > rturns $ENV{'REMOTE_USER'}; > While > sub user_name { > my ($self) = self_or_CGI(@_); > return $self->http('from') || $ENV{'REMOTE_IDENT'} || > $ENV{'REMOTE_USER'}; } > > SO if I'm trying to get

Re: Perl - Web Development

2003-06-05 Thread Todd Wade
"Paul Kraus" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > This may be asking for biased opinions but here goes anyways... > > Is perl still a good choice for the web. For instance I need to setup a > couple sites that are going to be running on IIS. Is perl still a good > choice f

Re: Warnings/strict still needed?

2003-06-05 Thread Todd Wade
"Michael Weber" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Just wondering. > > After I debug my perl scripts do I still need the strict and warnings > flags? > > Does it hurt performance having them? > > Does it hurt security removing them? > > The scripts are for system admin o

Re: Learning Graphics - Problem with Hello World Example / Fixed it!

2003-06-05 Thread Todd Wade
"Clint" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I was able to get it fixed. Here's what I did in case someone else runs into > the same problem: > > Changed from these lines: > my $image = new GD::Image(401,201); (btw: this line is different than what > is found in the text

Re: using a CONSTANT as a pathname

2003-06-02 Thread Todd Wade
"Tassilo Von Parseval" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Sun, Jun 01, 2003 at 11:22:32AM +0200 Kevin Pfeiffer wrote: > > > open DATA, ">@{[ CFG ]}" or die ...; > > The part between @{[ ]} is arbitry Perl-code that is executed in list > context and the last expre

Re: (de)referencing and Net::Whois::IP

2003-05-29 Thread Todd Wade
"Robert Arnold" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello all, > > > while ((my $key, my $value) = each %$response) { >if ($key eq "OrgName") > { > print "$range $value\n"; > #short circuits the while loop...i think

Re: Random wierdness with large outputs

2003-03-23 Thread Todd Wade
"R. Joseph Newton" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I'm wondering if there is an issue with the random function in terms of scaling. I have been testing a merge sort, and I noticed that when my test, built by pushing rand(10) a given number of times into

Re: CGI and Exchange 2000

2003-03-18 Thread Todd Wade
"Sander Liebert" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Your question is highly specific, and this is a beginners list. I suggest trying comp.lang.perl.misc or similar: http://groups.google.com/groups?hl=en&ie=UTF-8&group=comp.lang.perl.misc > I know this is slightly off t

Re: is there a 'more perl' way of doing this

2003-03-03 Thread Todd Wade
"Anadi Taylor" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all, > I have to start by thanking you all for your help so far - its been > invaluable. If it were'nt for you guys and gals i would have pulled my hair > out by now ! > > OK - here is the thing: I have written som

Re: Backslash in a string

2003-03-03 Thread Todd Wade
"Beau E. Cox" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi - > > > -Original Message- > > From: Guy P [mailto:[EMAIL PROTECTED] > > Sent: Monday, March 03, 2003 9:10 AM > > To: [EMAIL PROTECTED] > > Subject: Backslash in a string > > > > > > Hello, > > My Perl program e

Re: Newbie question about modules

2003-02-18 Thread Todd Wade
"Rgíón «hávkú" <[EMAIL PROTECTED]> wrote in message 003001c2d474$f6f76b20$[EMAIL PROTECTED]">news:003001c2d474$f6f76b20$[EMAIL PROTECTED]... > Hello all. > > I've reading some messges relating to the use of modules. > > How can I know what modules are installed in the server??? > > I have my site

Re: Gif Problem

2003-02-17 Thread Todd Wade
"Shawn Bower" <[EMAIL PROTECTED]> wrote in message 001301c2d3de$5093d020$6401a8c0@Beast">news:001301c2d3de$5093d020$6401a8c0@Beast... > I'm trying to write a script that will open a socket connection to a > website and return a gif. I got it working to the point where and send > the request and r

Re: re slurping a text file

2003-01-14 Thread Todd Wade
"Colin Johnstone" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > I wish to slurp in a letter template in the form of a text file and > > > substitute fields in the letter for variables that are input on my html > > > form. I indicate in the text file where

Re: Printing Output To Screen.

2003-01-13 Thread Todd Wade
"Korthrun" <[EMAIL PROTECTED]> wrote in message 000b01c2ba92$be2f07e0$22cf483f@korth">news:000b01c2ba92$be2f07e0$22cf483f@korth... > I have written a program in perl that collects some data and prints it to the screen based on parameters that are given > on the command line (gee original idea for

Re: Epoch midnight

2003-01-13 Thread Todd Wade
"Rob Dixon" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > "Deborah Scott" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > I thought I understood the answer, but I need more details. > > > > What exactly would I enter if

Re: References ch 8 programming Perl

2003-01-04 Thread Todd Wade
"John W. Krahn" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... My thoughts on perl references. This code: > foreach $file(@files) { > > open file... > @$file = ; > close file... > } creates named arrays via symbolic references. [trwww@devel_rh trwww]$ perl $s

Re: Simulating the query string from the command line

2002-12-24 Thread Todd Wade
"R. Joseph Newton" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > Is there any way to feed a query string to a perl script from the command line? I have some scripts that run well under IIS, but not on the Unix server where I will be porsting them when

Re: creating a mysql table with perl

2002-12-24 Thread Todd Wade
"Patricia Hinman" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi everyone, > > I know it's Christmas eve, and I should be enjoying > myself, but that's about all that's here tonight, > (myself). > > So I thought I would jump into mysql and learn the > basi

Re: RSS feed without a Mod

2002-10-25 Thread Todd Wade
"Troy May" <[EMAIL PROTECTED]> wrote in message news:LOBBINEJDCHCGAJGGIFCIENNEDAA.tmay@;pcsympathy.com... > I was wondering if anybody knew of a complete script that can convert RSS > feeds to HTML without the normal needed mod (XML::RSS?), to be used as an > SSI on my page. My ISP will not insta

Re: read from a file

2002-10-25 Thread Todd Wade
"Synh Vo" <[EMAIL PROTECTED]> wrote in message news:1779CE9992706F45BDC9575124A5AAE51BFC41@;a0001-xpo0114-s.hodc.ad.allstate .com... > Hi, > > I'm trying to read from a file and based on the some of the matched info, > print out certain statements. This is probably very easy for the folks here. >

Re: Splitting A large data file

2002-10-25 Thread Todd Wade
- Original Message - From: "Kipp, James" <[EMAIL PROTECTED]> To: "'Todd W'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, October 25, 2002 12:13 PM Subject: RE: Splitting A large data file > This is an interesting approach. Of course my Perl OOP skills have > atrophied, so I hav

RE: How to deploy a Perl Application

2002-10-09 Thread Todd Wade
Nyimi Jose wrote: >> The Browser's interface cannot contain all the features and rings >> and bells a normal GUI can (unless you use Java and use the browser >> just to download and host the application) > > What about Perl for the aforementioned functionality. > It's seems that Java is the Guru

Re: " use warnings;" doesn't work

2002-10-09 Thread Todd Wade
Stanley wrote: > > i use solaris and ihave no root right.the version of perl5.005_03 > > in a simple script if i try to add "use warnings",it will say Can't locate > warnings in @inc(@inc..) > > instead if i use perl -w my.pl,it will give me the warning information. so > how can i modify m

Re: How to deploy a Perl Application

2002-10-07 Thread Todd Wade
Nyimi Jose wrote: > Hello, > Hi there! > > My question is: > Once I develop my Application(GUIs) and so one, how to deploy it to users > ? If my users are using PC (Windows OS) and they don't Perl installed on > their PC, - should I go and installed Perl on each user's PC : I don't > think that

Re: diamond operator

2002-10-04 Thread Todd Wade
John W. Krahn wrote: >> i run the perlscript with a file suffix like: >> ./perlscript test1.txt >> i am trying to reverse the contents of test1.txt line-by-line and print >> them out. but i dont get any output.any help would be appreciated. > > > print reverse <>; > And they say perl is hard

RE: Installing a PM on Linux

2002-10-04 Thread Todd Wade
> > Hi all, this is most likely a silly question but in the past I have just > did installs of Perl modules using the perl -MCPAN -e shell command. How > do you install a .pm file if you already downloaded from somewhere? Thanks > in advance as always! > > The standard way to install a downloade

Re: perl CPAN modules

2002-08-16 Thread Todd Wade
"Richard Pfeiffer" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Good Evening, Thank you. > > Wondering what list I should send a question to regarding CPAN modules, in > particular, the intitial config file. > Ignore the rest of this lengthy diatribe if

Re: Need help

2002-08-09 Thread Todd Wade
"Junaid Najamuddin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]. net... > Hi, > > Thanks in advance, if someone can help me out > I am trying to read the last 10 lines of a log file. If the script finds a > word ERROR it should email and log the event. If not then do nothing. > So

Re: chris, your address is bad (was "Re: perl parser for crontab files?")

2002-07-28 Thread Todd Wade
"David T-G" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... >Sorry for the interruption, everyone. > >Chris, your email address (@home.com) is dead. Would you mind fixing it? Since you are asking people to change thier user agent's configuration, how about chai

Re: sort arrays by size

2002-07-07 Thread Todd Wade
"Bob Ackerman" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > On Monday, July 8, 2002, at 12:46 AM, Todd Wade wrote: > > > > > "Patricia Hinman" <[EMAIL PROTECTED]> wrote in message > > [E

Re: real beginner's question

2002-07-07 Thread Todd Wade
"David Carpenter" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have a text file with occasional strings enclosed in braces: > kdkdkiwiwdkdkdk {iwidkwidkw} kdkdkdwiwiwkdkdk . . . > > I would like to use tr/// to modify the characters within the braces, whi

Re: sort arrays by size

2002-07-07 Thread Todd Wade
"Patricia Hinman" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Does anyone know of a routine that will sort arrays by > size. I need to sort any number of given arrays, and > operate on the largest to the smallest. > > I've just recently learned of the > @n

Re: New Script

2002-07-07 Thread Todd Wade
"Janek Schleicher" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Todd Wade wrote at Sat, 06 Jul 2002 21:25:24 +0200: > > > > > I might use something like this: > > > > #!/usr/bin/perl -w > >

Re: New Script

2002-07-06 Thread Todd Wade
<[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi > > I'm trying to write a new script that will automatic show a pop up window > with a random username and password for my members section. ...snip... > Can someone how tell me how to begin and what the format

Re: PERL and Win2K User Administration

2002-06-26 Thread Todd Wade
"Mike Garner" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > This may not be the best place to post this as PERL is only part of my > question but here goes: > I need to add several thousand user accounts to a Windows 2000 Server > (Active Directory). The acco

Re: Embedded Perl

2002-06-25 Thread Todd Wade
Nigel Peck wrote: > I'm interested to know what solutions people use/like for embedding Perl > in HTML/XML documents to be processed by the web server (like PHP and > ASP), for Apache. I like the fact that the syntax for PHP is > (it complies with XML) and would like to be able to do it using my

Re: Just started perl, but have run into a problem

2002-06-25 Thread Todd Wade
Robert Warning wrote: > Hello Everyone! Greetings > ... My only problem is that when I put > #!/usr/bin/perl at the beginning of any of my programs it wont run. I > get an output from the shell that says /usr/bin/perl: bad interpreter: > Permission denied. I could only run the script if I typed

Re: cat binary file

2002-06-20 Thread Todd Wade
Gary Stainburn wrote: > On Thursday 20 June 2002 3:56 pm, Gary Stainburn wrote: > > open(FIN,"<$fname.pdf") || &dodie("cannot access PDF: $!\n"; > print "Content-Type: text/html\n\n"; > while (sysread FIN, $buffer, 4096) { > print $buffer); > } > close FIN; > This is how to do it. Todd W.

Re: Perl X ASP

2002-06-20 Thread Todd Wade
Joao Silva wrote: > >Why should use CGI with Perl instead of ASP??? > This is sort of like asking why should I eat an apple instead of an orange. Maybe you dont have an apple, maybe you dont like apples, or maybe you dont mind apples too much, its just that you are a little more farmilia

Re: Re[2]: Function for converting a specific date to number of seconds since 01/01/1970?

2002-06-18 Thread Todd Wade
Daniel Gardner wrote: > Tuesday, June 18, 2002, 9:30:40 PM, Todd Wade wrote: > >> # this sub was written by Larry Rosler >> # modified by me to get rid of the 'argument isnt numeric' warnings by -w >> # i found it on deja > > it's probably better t

Re: running perl scripts on Windows

2002-06-18 Thread Todd Wade
Dave K wrote: > Anadi, > Thanks, but not really... > The > #!D:\Perl|bin\perl -w > is ignored in windows - the key is the file association... dont forget... not ignored... the line is parsed for switches > I am not familar with the <% %> syntax (Mason or mod_perl perhaps??), The That is ho

Re: Processing query results

2002-06-18 Thread Todd Wade
Felix Geerinckx wrote: > on Tue, 18 Jun 2002 19:11:29 GMT, Kevin Old wrote: > >> I have quite a complicated question and it is mainly about how to >> process the data after I get it out of the database. >> [...] >> I need to perform caclulations on the values as they come out of the >> database.

RE: running perl scripts on Windows

2002-06-18 Thread Todd Wade
Nikola Janceski wrote: > Something I just found out. > I use NT 4 sp 6, Activestate perl 5.6.1. > I create a cmd file for all my perlscripts that have a line > > c:/full/path/to/perl c:/path/to/script.pl > Im just guessing, but it seems like this could throw your environment way out of whack.

Re: running perl scripts on Windows

2002-06-18 Thread Todd Wade
Shawn wrote: >> Hey learn, >> >> My MUA believes you used (X-Mailer not set) >> to write the following on Tuesday, June 18, 2002 at 2:49:32 PM. >> >> lp> use #!d:\perl\bin\perl.exe -w >> >> lp> on top of your script >> >> As I recall, the #! in Windows only uses the switches (-w). >> >> So >

Re: Function for converting a specific date to number of seconds since 01/01/1970?

2002-06-18 Thread Todd Wade
Alan Hogue wrote: > Hi, > > I need to know the easiest way to translate a date (not today's date) > into the number of seconds since 01/01/1970. I realize there is at > least one function that turns the current date/time into this number, > but I need to find, for instance, everything with a dat

Re: "lazy" variable declaration

2002-06-13 Thread Todd Wade
"David T-G" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hmmm... Well, I'll grant you that, but what about the example above? It > would only be undef for the first N lines that are short, and once it > gets loaded then it will get reset instead. It seems

Re: "lazy" variable declaration

2002-06-13 Thread Todd Wade
"Janek Schleicher" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > use strict; use warnings; wasn't made only to make the Perl Community luckier. > It can help to avoid typical mistakes like > (a) mispelling of a variable > (b) using of an undefined variab

Re: How to open STDOUT ?

2002-06-13 Thread Todd Wade
"Franck Fasano" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > I have recuperated a module from the web and I interfaced > with it but STDOUT is closed . > If I do a : print STDOUT "hello\n" in my script, nothing appeared . > > I don't know where STDOU

Re: get external ip from D-Link router

2002-06-11 Thread Todd Wade
"Bob Ackerman" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > >> my $req = HTTP::Request->new(GET => 'http://192.168.0.1/status.htm'); > > > > The line above will work to fetch a document from a linksys BEFSR41 and > > the > > like. Are you sure thats right f

Re: it works but is this right

2002-06-11 Thread Todd Wade
A Taylor wrote: > howdy all, > I was wondering if you could help me, I have a perl script that executes a > SQL statement: > > 'SELECT prop_rank FROM main ORDER BY prop_rank DESC' > > This returns many records but all i am interested in is the highest rank > hence the 'ORDER BY prop_rank DESC'.

Re: get external ip from D-Link router

2002-06-10 Thread Todd Wade
"Bob Ackerman" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > i can't quite figure out how to do this in perl. i have: > use LWP::UserAgent; > > # Fetch the page > $admin = ARGV[0]; #password > print $admin,"\n"; > my $ua = LWP::UserAgent->new; > my $req =

Re: "printf" behaving oddly

2002-06-10 Thread Todd Wade
"Adrian Farrell" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > $answer = printf ("\nThe area of the circle with a radius of $radius is > %2.2f\n", ($area)); > > print "$answer" If you want to store the string in a var, use sprintf. printf returns wether or

Re: get external ip from D-Link router

2002-06-10 Thread Todd Wade
Bob Ackerman wrote: > my box is behind a D-Link router 704. > The router gets its ip from my isp using dhcp. > anyone know how to get that external ip from the router? > is any module designed to find your external ip when you are on a lan? > router is admined from a web page, so i guess it is p

Re: Autodetect line endings in a text file...

2002-05-29 Thread Todd Wade
"Sumit Babu" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello All, > > I will be getting the files from different platforms (i.e. Unix or > Windows). Is there a way i can automatically detect the line endings and > accordingly use the chomp function t

Re: cgi script that takes in data then runs script on different host

2002-05-28 Thread Todd Wade
"Simon K. Chan" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > cgi script on host 1pass $name to host 2 script on host 2 > # get $name ---> print "hi there $name!\n"; Somewhere at the top of scriptOnHost1.cgi

Re: 'use' question

2002-05-28 Thread Todd Wade
Jason Frisvold wrote: > This is kind of a weird situation and *disclaimer* isn't my code! :-) The code from the post looks like a C programmer that is new to perl. Interesting, actually. Ive been programming in perl for years and Ive just now got in to C because Im getting my degree. Its neat

Re: elements 2 thru end of the results of a split

2002-05-28 Thread Todd Wade
Bryan R Harris wrote: > > Is it possible to return elements 2 (index 1) thru end of the results of a > split? > > @myarray = (split(/\s+/,$fContent[$i]))[1..-1]; > > seems right, but doesn't work... > > (I sure hope this list never starts charging on a per-answer basis... =) > > - B Id p

Re: anonymous array?

2002-05-28 Thread Todd Wade
Mark Henry wrote: > ...is the line beginning "ref ($sender ..." assignment of an anonymous > array to a reference? ref($sender = new Mail::Sender { from => '[EMAIL PROTECTED]', smtp => 'server.location.net', boundary => 'This-is-a-mail-boundary-435427' }) or die("Error($sender) :

Re: Send mail quesiton

2002-05-23 Thread Todd Wade,,,Room 108
Lance Prais wrote: > All, >I am trying to "use Mail::Sendmail" to send mail. The problem is that > the sendmail is in the right folder. The only thing that comes to mind is > that I am doing this on NT > > The path for the sendmail.pm is perl/lib/mail/sendmail.pm > > I am getting the f

Re: equivalent of /* */

2002-05-22 Thread Todd Wade,,,Room 108
Chris Ball wrote: > There are two ways of doing something similar, but not identical. This just popped in to my head, but could you use a "here_doc" in void context? <<'END_OF_COMMENT'; blah blah blah,blah,blah blah END_OF_COMMENT Though I figure this will make it in to memory during compil

Re: avoid backticking if at all possible - Re: perl awk question

2002-05-21 Thread Todd Wade,,,Room 108
Drieux wrote: > foreach my $file (@ARGV) { # for everything we see on the command line > # let us assume it is a file for simplicity > if ( -f $file ) { > open(FH, "$file"); # normally we want to die > print $_ while(); # silly but a one liner > # could have been while() { print $_ ;} > # but tha

Re: perl DBI disconnect question

2002-05-16 Thread Todd Wade,,,Room 108
Rory Oconnor wrote: > > Regarding perl DBI - I know it's proper to use $sth->finish and > $dbh->disconnect and I am doing that at the end of my script... > > however, i am also doing alot of error checking at the beginning of the > script (to make sure data has been entered, and formatted prope

Re: How do I delete a file

2002-05-16 Thread Todd Wade,,,Room 108
Connie Chan wrote: > >> unlink($_) for @$filelist ; > > > Heehee.. Thanks a lot !!! I really don't know for loop can be writtern > in this way [trwww@misa trwww]$ perldoc -f unlink unlink LIST unlink Deletes a list of files. Returns the number of files success

Re: Perl Cookbook

2002-05-16 Thread Todd Wade,,,Room 108
Patrick Dempster wrote: > Hi Folks, > > I've just worked my way though the learning perl (lama book) 3rd edition > and I must say I found it very good, and after lurking in here for a while > and hearing people talk about the perl cookbook. I took a wander over to > amazon and read the reviews,

Re: copying hash structures into a CGI script

2002-05-16 Thread Todd Wade,,,Room 108
Maureen E Fischer wrote: > code for me, but since this is considered its own "block", I cant't > refer to the variables. Should I be > > going about this in a totally different way? You want to create a class. OOP might sound scary, but its not. # name this file DynamicConfig.pm and # save it

Re: How do I???

2002-05-14 Thread Todd Wade
"Jeff O'Connell" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I'm trying to figure out how to do the following in Perl. Can anyone help > me? > > Problem: > Design and implement a perl program that will evaluate a polynomial > expression of arbitrary degree

Re: TIMTOWTDI

2002-05-13 Thread Todd Wade,,,Room 108
Bob Ackerman wrote: > > this one wins the prolix award of the solutions we have seen today. > we dare a non-perl programmer to believe this could mean something. > I'm not sure i believe it means whatever. especially (?)(.) - zero or one > character followed by a character? > followed by a non-

Re: TIMTOWTDI

2002-05-13 Thread Todd Wade,,,Room 108
John W. Krahn wrote: > Todd Wade wrote: > > Why remove everything you don't want, why not just capture the data you > do want? sure > >> $weather =~ tr/[A-Z]\n/[a-z] /; > ^ ^ ^ ^ > Why are you translating a '[' to 

Re: TIMTOWTDI

2002-05-12 Thread Todd Wade
"José nyimi" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > The Perl slogan is: "There Is More Than One Way To Do It". > > I'm interested to see how you will do the small convertion below. This sub grabs http://weather.noaa.gov/pub/data/forecasts/zone/oh/ohz0

Strings as Numbers (was: Re: simple problem)

2002-04-30 Thread Todd Wade
#x27;print "123aaa" + 1;' # woah !!! prints 124 !!! Actually, its even a little more complicated than that. Todd Wade [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: need help

2002-04-29 Thread Todd Wade
"Luinrandir Hernsen" <[EMAIL PROTECTED]> wrote in message 00f901c1efe0$0b20db60$[EMAIL PROTECTED]">news:00f901c1efe0$0b20db60$[EMAIL PROTECTED]... This line is from a script > Or to say it another way I need the following two lines to be one. > if ($Config{'print_blank_fields'} || $Form{$field}

Re: proxy server

2002-04-22 Thread Todd Wade
"Conan Chai" <[EMAIL PROTECTED]> wrote in message 003301c1ea03$29edb410$0164a8c0@user1">news:003301c1ea03$29edb410$0164a8c0@user1... hi, >how do i read in the request from a browser? Go get the Perl Cookbook. Theres a whole section on being a TCP server. Its a little too complicated to discuss

Re: SOAP::Lite documentation?

2002-04-21 Thread Todd Wade
"Tara Calishain" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Is there SOAP::Lite documentation for Perl novices? Everything I've found > so far seems > to be written for more advanced users. perl.com did a two parter. The articles there always give a good

Re: Perl on the Palm OS?

2002-04-14 Thread Todd Wade
What you do here is build a web based app. The palm already has a browser in it, so no software installation is necessary. All the palm meeds is a url. This wonf it every circumstance, but web apps are usually the way to go. trwww <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMA

Re: Perl - HTML Intergration

2002-04-06 Thread Todd Wade
"Vasileios Pliasas" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi! I'm new to perl and I would like to ask you > how does perl with html intergrades? > How can I call a perl script from my web browser? > I don't mean "... src=/../../test.pl" > What's next?