Re: New Website for Perl Beginners: perlmeme.org

2005-10-03 Thread Rob Bryant
On 10/2/05, Ovid <[EMAIL PROTECTED]> wrote: > There's more and nitpicking seems petty Yep, you're right on the money with that. It does indeed seem petty. So did Randal "I am Unhealthily Obsessed With The Flinstones" Schwartz's earlier post. One would assume (apparently erroneously, however) tha

RE: HTML::Template is choking

2004-09-28 Thread Hanson, Rob
plate-2.7/Changes] 2.3 Thu June 28 12:00:00 2001 - New Feature: template tags can now span lines. (Roland Giersig) Rob -Original Message- From: Rick Triplett [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 28, 2004 2:39 PM To: [EMAIL PROTECTED] Subject: HTML::Template is choki

RE: image manipulation (scaling)

2004-09-17 Thread Hanson, Rob
e you want would be something like this: use Image::Magick; my $image = Image::Magick->new; $image->Read('logo.jpg'); $image->Crop(geometry=>'100x100"+100"+100'); $image->Write('x.jpg'); Rob -Original Message- From: Ingo Weiss [mailto

RE: PHPerl

2004-09-08 Thread Hanson, Rob
There is embperl like was mentioned. Also Mason is very popular and well documented. Rob -Original Message- From: Octavian Rasnita [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 11:57 AM To: [EMAIL PROTECTED] Subject: PHPerl Hi all, Is there a way to embed Perl

RE: Month-Year Links....

2004-09-07 Thread Hanson, Rob
--$months) } return $time; } sub first_day { my $time = shift; my @time = localtime($time); $time[3] = 1; return timelocal(@time); } sub get_date { my $time = shift; my @time = localtime($time); return sprintf('%02d-%04d', $time[4]+1, $time[5]+1900); } -Origin

RE: Month-Year Links....

2004-09-07 Thread Hanson, Rob
The trick is to use Time::Local to find the first day of the month, then subtract 1 day. This prints: 09-2004 08-2004 07-2004 ### use Time::Local; use constant DAY => 86_400; $current = time; $previous = first_day($current) - DAY; $current_2 = first_day($previous) - D

interactive perl programing

2004-03-31 Thread rob lester
I'm stumped on where to look but there must be a module to handle interactive programming. What I mean is printing out a list of things, the user selects what he wants, hits enter and the program continues. I presume the module would enable going back to change things and handle multipage input

Active 'back' buttons

2004-03-29 Thread Rob Dixon
which can be clicked on to provide the complete data for the single record, how do I get back to the page with the list of records? Obviously I can pass all the search criteria to the detail script and have it pass them back again to repeat the search. But I know there must be a better way t

RE: quote marks in DBM

2004-02-08 Thread Hanson, Rob
- I unquoted the hash keys. They only need to be quoted if there are spaces or special characters in them. In this case they will automatically be treated as single quoted strings without having to actually use quotes around them. It's really a matter of preference on if you want to explicitly

RE: Hidden field on a form in perl

2003-11-21 Thread Hanson, Rob
I'll see if I can explain it gently as you seem to be a gov't worker ;) There is no "perl" translation... you just aren't thinking about it in a web-app type of way. The sequence would look like this... 1. display page "A" to user 2. user submits page "A" with hidden form field 3. perl script pr

RE: quotes problem

2003-10-20 Thread Hanson, Rob
t it. If you could give us an example of the query string, maybe that would help. My guess would be that the query string is malformed. Rob -Original Message- From: Sara [mailto:[EMAIL PROTECTED] Sent: Sunday, October 19, 2003 6:56 PM To: beginners-cgi Subject: quotes problem #

RE: Where is Apache::Session

2003-10-20 Thread Hanson, Rob
On CPAN. http://search.cpan.org/~jbaker/Apache-Session-1.54/ Rob -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, October 20, 2003 6:15 PM To: [EMAIL PROTECTED] Subject: Where is Apache::Session I'm looking for the download of Apache::Session.

Re: Laying Out HTML Forms

2003-10-16 Thread Rob Dixon
Casey West wrote: > > It was Wednesday, October 15, 2003 when Rob Dixon took the soap box, saying: > : Does anyone know of a tidy way to go about the tedious > : business of laying out HTML forms using enclosing > : tags? > > I admit that the internals of CGI::Form

Laying Out HTML Forms

2003-10-15 Thread Rob Dixon
Does anyone know of a tidy way to go about the tedious business of laying out HTML forms using enclosing tags? Thanks, Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Date to seconds

2003-09-17 Thread Rob Dixon
27;re not worried about size or performance. See below. HTH, Rob use strict; use warnings; use Date::Manip; my $date = ParseDate('20030910 13:50:25.6'); my $seconds = UnixDate($date, '%s'); print $seconds, "\n"; ** OUTPUT ** 1063230625 -- To unsubscribe, e-

RE: accessing a hash map...

2003-09-09 Thread Hanson, Rob
ed to specific port (ActiveState), or modules (Tk). This is a good list for any beginner(ish) question, no matter the subject... just as long as it is a Perl question. Rob -Original Message- From: Li, Kit-Wing [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 09, 2003 2:40 PM To: cgi cg

RE: File existence under Microsoft IIS

2003-09-05 Thread Hanson, Rob
rl/bin/perl.exe'; print -e 'C:/Program Files'; print -e 'C:/Program Files/WinZip'; Rob -Original Message- From: Mike [mailto:[EMAIL PROTECTED] Sent: Friday, September 05, 2003 9:13 PM To: [EMAIL PROTECTED] Subject: File existence under Microsoft IIS Hello, I have b

RE: Stripping HTML from a text file.

2003-09-04 Thread Hanson, Rob
ersion... # untested $text = "..."; $text =~ s|().*?()|$1$2|s; ...Or if you wanted to keep the tag... # untested $text = "..."; $text =~ s|().*?.*?.*?()|$1$2$3|s; Rob -Original Message- From: Wiggins d'Anconia [mailto:[EMAIL PROTECTED] Sent: Thursday, September

RE: Stripping HTML from a text file.

2003-09-04 Thread Hanson, Rob
n this if the HTML isn't well formed, or if there are extra spaces in your tags. If you want something for the command line you could do this... (Note: for *nix, needs modification for Win [untested]) perl -e '$x=join("",<>);$x=~s|.*?||s' myfile.html > newfile.h

RE: cgi error

2003-08-15 Thread Hanson, Rob
ll of the above. Rob -Original Message- From: David Glucksman [mailto:[EMAIL PROTECTED] Sent: Friday, August 15, 2003 1:26 PM To: [EMAIL PROTECTED] Subject: cgi error Hello everyone, I am new to Perl and CGI so I need some help. I have a simple cgi script: #!/usr/bin/perl print &quo

RE: .htaccess

2003-07-24 Thread Hanson, Rob
This is really an Apache question, not Perl. Most things that can be done in the Apache config can be done in a .htaccess file, assuming the main Apache config file allows you to do so. You might want to check out the Apache docs at http://httpd.apache.org. Rob -Original Message- From

Re: look arounds

2003-07-07 Thread Rob Dixon
is result. For versions < 5.8 this will do what you want: my ($color, $animal) = /the (\w+) (\w+)/i; which, to my mind, is a lot neater anyway. Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Running process in background?

2003-07-03 Thread Hanson, Rob
r client it running. Using a DB to do this is straight-forward since all you need to do is query the DB that have a "send_date" column that is older than the current time, and send those records. If you use a text file you need to worry about parsing, updating, locking, and everything e

RE: Running process in background?

2003-07-03 Thread Hanson, Rob
to store your schedule. Each hour a cron launches your send script which queries the schedule (On Oracle: Select * from schedule where send_time > Sysdate), then iterates through each sending a mail. Rob -Original Message- From: Scot Robnett [mailto:[EMAIL PROTECTED] Sent: Thursday, J

Clearing Printers w/CGI

2003-06-26 Thread Rob
rnet but is an internal machine. Any help on solving this problem would sure make my upcoming vacation much nicer ;^) -- Rob Do not meddle in the affairs of wizards, for they are subtle and quick to anger. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: More subroutine confusion

2003-06-08 Thread Rob Dixon
Rob Richardson wrote: > Dave, > > Your response dovetails nicely with my next question. I don't think the list has a response from Dave at the time of writing? > The module I'm working in begins as follows: > > use warnings; > use strict; > use CGI qw/:stan

More subroutine confusion

2003-06-07 Thread Rob Richardson
Dave, Your response dovetails nicely with my next question. The module I'm working in begins as follows: use warnings; use strict; use CGI qw/:standard center strong *big delete_all/; After putting parentheses after my calls to "br", the program compiled and started running. It barfed, though,

Re: br -- problem caused by "Package"? -- my bad

2003-06-07 Thread Rob Richardson
Greetings again! I could of course be wrong... I just found that I had "use warnings" and "use strict" commented out in the module that compiled! Excuse me for a while while I track down a hundred or so violations that uncommenting them uncovered. RobR --- Rob Richards

Re: br -- problem caused by "Package"?

2003-06-07 Thread Rob Richardson
est; my $testString = br; When I compile this, I get the following error: Bareword "br" not allowed while "strict subs" in use at brtest.pm line 12. When I comment the "package Brtest;" line, I don't get the error. What is happening? Thanks again! Rob P.

br

2003-06-07 Thread Rob Richardson
Greetings! I am attempting to use objects to organize a program somewheat intelligently. I am running into a problem using the CGI method "br". My main routine has the following use statements: use CGI::Carp qw(fatalsToBrowser); use CGI qw/:standard center *big delete_all/; It begins writing H

RE: I am having trouble using SSI(Server side includes) from cgi using perl

2003-06-06 Thread Hanson, Rob
Right, Apache 2.0 supports this with filters. Rob -Original Message- From: Octavian Rasnita [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 5:32 PM To: Edson Manners; [EMAIL PROTECTED] Subject: Re: I am having trouble using SSI(Server side includes) from cgi using perl CGI is

RE: Problems getting a simple form to work.

2003-04-04 Thread Rob Benton
It's OK, my feelings aren't hurt :) On Fri, 2003-04-04 at 15:45, Hughes, Andrew wrote: > I think you meant, "Thanks, Rob." > > Andrew > > -Original Message- > From: Mike Butler [mailto:[EMAIL PROTECTED] > Sent: Friday, April 04, 2003 4:45 PM >

RE: Problems getting a simple form to work.

2003-04-04 Thread Rob Benton
Give this a shot and see if it errors: use CGI; my $query = new CGI; my %params = $query->Vars; my $username = $params{'username'}; On Fri, 2003-04-04 at 15:29, Mike Butler wrote: > Thanks, Andrew. I added CGI::Carp qw(fatalsToBrowser); to the script. That's > a big help. The error message tha

Re: File::Find

2003-04-03 Thread Rob Dixon
ally is. > 2) Does anyone know of a module out there that does global search and replace on > whole > directories and all subdirectories? You could take a look at File::Searcher, but it shouldn't be too difficult going the way you are. Cheers, Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Forcing a refresh from within a CGI script

2003-04-02 Thread Rob Dixon
owards a better solution? Thanks, Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: mysterious blank space in variable

2003-04-01 Thread Rob Anderson
h my $string ("123.23", "123 ", "123.23", "234.234", " 2 ", " .3 "," 12. ") { if ($string =~ m/(\d+?\.\d*|\.?\d+)/) { my $num = $1; print ">>$num<<\n"; } else { print "unkno

Re: Problems with html output

2003-03-27 Thread Rob Anderson
Your logic looks find, and works on my machine (although I made it command line) Try switching on warnings (#!/usr/local/bin/perl -w) and use strict (use strict;) Probably most likely is that you script can't read the file. You should really always check if a file has been opened successfully yo

RE: Problem with regular expressions!!!

2003-03-19 Thread Hanson, Rob
none). $test =~ /foo.*?bar/; Also... + = 1 or more (greedy) +? = 1 or more, non-greedy. Rob -Original Message- From: Rob Benton [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2003 2:07 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: Problem with regular expressions!!! H

Re: Problem with regular expressions!!!

2003-03-19 Thread Rob Benton
How does it translate? * = 0 or more of preceding char ? = 1 or 0 of preceding char *? = ??? On Tue, 2003-03-18 at 21:41, Michael Kelly wrote: > On Tue, Mar 18, 2003 at 05:53:45PM -0600, Rob Benton wrote: > > It looks odd to me b/c * and ? are both quantifiers... > > * and ?

Re: Problem with regular expressions!!!

2003-03-18 Thread Rob Benton
It looks odd to me b/c * and ? are both quantifiers which usually triggers an error when you try to run it. See if this works for you: $file_completename =~ /([^.]*)\.(.*)/; On Tue, 2003-03-18 at 15:28, Marcelo Taube wrote: > As u probably have guessed some part of my code is not working proper

passing cgi params

2003-03-15 Thread Rob Benton
If I use: my $query = new CGI; my %params = $query->Vars; to grab the incoming parameters is it safe to just send all of them over to a new cgi script like this: my $form = CGI::FormBuilder->new( fields => \%params, method => 'POST'); print $form->render(); Or will that pass along built-in para

CGI::FormBuilder

2003-03-14 Thread Rob Benton
Is there a way to print a 'button' input type without a label next to it using the FormBuilder object? I can't find the right combination. I always wind up with this +---+ Next |Next | +---+ and what I want is +---+ |Next | +

RE: html table limit

2003-03-12 Thread Rob Benton
Scroll up and down to the bottom of the page then see if the borders screw up. On Wed, 2003-03-12 at 14:57, Bob Showalter wrote: > Rob Benton wrote: > > Mozilla, Konqueror, Opera, and IE all act the same way. Check out this > > page to see what I mean. The top, bottom, and ri

RE: html table limit

2003-03-12 Thread Rob Benton
1000+ rows is a rare situation on my page but in can happen. It's a dbi script. I couldn't really think of a better design but I am open to suggestions... On Wed, 2003-03-12 at 15:07, Brett W. McCoy wrote: > On 12 Mar 2003, Rob Benton wrote: > > > > > Is there a li

RE: html table limit

2003-03-12 Thread Rob Benton
, 2003-03-12 at 12:02, Bob Showalter wrote: > Rob Benton wrote: > > Is there a limit to how many rows you can put in an html table? I > > can't find anything wrong with my script but when I get over 1000 > > rows or so in my tables they start drawing weird borders. >

html table limit

2003-03-12 Thread Rob Benton
Is there a limit to how many rows you can put in an html table? I can't find anything wrong with my script but when I get over 1000 rows or so in my tables they start drawing weird borders. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

CGI::FormBuilder parsing

2003-03-10 Thread Rob Benton
I've noticed that when using the formbuilder that field names that have underscores in them are replaced with spaces. And also that if a field has a '.' in it, that . and everything after are truncated when printing. Is there any way to modify this? -- To unsubscribe, e-mail: [EMAIL PROTECTED

RE: my( $string )

2003-03-06 Thread Hanson, Rob
and operations will do different things based on the context they are called in. For example when setting a scalar to an array (like above), the number of elements is returned... but when setting an array to a list (like above) you get as many elements as you have variables. Hope that helps. Rob

RE: data structures

2003-03-04 Thread Hanson, Rob
red{$bag_name}->{image_name} = $imgName; # set the quantity. should it be additive with +=? $bags_ordered{$bag_name}->{quantity} = $bag_quantity[$i]; } # print the structure for testing using Data::Dumper print Dumper \%bags_ordered; Rob -Original Message- From: David Gilde

RE: How much is too much

2003-02-27 Thread Hanson, Rob
probably be frowned upon. You really need to ask them to know for sure. Rob -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, February 27, 2003 9:43 AM To: [EMAIL PROTECTED] Subject: How much is too much I write MacPerl at work to munge local files but u

RE: parsing text files ...

2003-02-26 Thread Hanson, Rob
; could this start at the bottom of the file > and read backwards Nothing built in. A quick search of CPAN shows a module called File::ReadBackwards. http://search.cpan.org/author/URI/File-ReadBackwards-0.99/ Hope that helps. Rob -Original Message- From: Jamie Bridges [ma

RE: DBI question

2003-02-14 Thread Hanson, Rob
> Basically, i'm trying to write a little abstraction layer Someone already did the work for you, check out Class::DBI. Here is a good article on it, it might be all you need. http://www.perl.com/pub/a/2002/11/27/classdbi.html Rob -Original Message- From: Peter Kappus [mailt

Premature end of script headers -- solved

2003-01-12 Thread Rob Richardson
Greetings! I found the problem. In one execution path, my script has the following steps: $month = param('month'); $day = param('day'); $year = param('year'); $position = param('position'); $indmonth = param('indmonth'); $selection = param('selecti

Re: Sending a location Header

2003-01-12 Thread Rob Richardson
Greetings! I have successfully added the new functionality to the script I have been upgrading. Now the old functionality doesn't work. When I try to use it, I get an error page announcing Error 500, Internal Server Error. The log file contains the following message: "Premature end of script h

Re: using an AND operator

2003-01-11 Thread Rob Dixon
x27;&&' but a higher priority than 'and', so: $bool = $SRF == 1 && $SRL == 1 means $bool = (($SRF == 1) && ($SRL == 1)) but $bool = $SRF == 1 and $SRL == 1 means ($bool = ($SRF == 1)) and ($SRL == 1) HTH, Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: IF statments -- ORs short circuit too

2002-12-24 Thread Rob Richardson
--- Michael Kelly <[EMAIL PROTECTED]> wrote: > Only and's short-circuit. Or's test every argument by necessity. Mike, In just about every Perl script that has to read from or write to a file, you will see a line similar to the following: open (MYFILE, "myfile.txt") or die "Can't open myfile.tx

start_tr

2002-12-13 Thread Rob Richardson
ly talks about CGI? I have a couple whose titles include "CGI", but they say nothing about CGI. All they talk about is Perl. Thanks! Rob __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

database update

2002-08-15 Thread Rob
n run from cgi I get the following error... ERROR: parser: parse error at or near "," I'm using the Pg module, any idea why it won't run from the web? Rob Good judgement comes from experience, and experience - well, that comes from poor judgement. -- To unsubscribe, e-mai

RE: Better regrex method

2002-08-14 Thread Hanson, Rob
quot;, $tag->{NUM}, "\n"; print "\n"; } Something like that? Rob -Original Message- From: Mike(mickako)Blezien [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 14, 2002 2:44 PM To: Perl List Subject: Better regrex method Hello, I'm working on a project whe

RE: Submitting Form Passes Old Values

2002-08-14 Thread Hanson, Rob
modules used) in memory so that it starts up faster the next time it is called, and it *can* cache variables if your code isn't written with mod_perl in mind. I hope that helps. Rob -Original Message- From: Hal Vaughan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 13, 2002 11:27

get data over ssh

2002-08-02 Thread Rob
CPAN that I should look at? Thanks Rob Good judgement comes from experience, and experience - well, that comes from poor judgement. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

ftp to get a file from my cgi

2002-07-03 Thread Rob Roudebush
Hi, When my form processess it needs to ftp into a site to grab information - can I use a here document for that? Any quick example please. Thanks, Rob Todd Wade <[EMAIL PROTECTED]> wrote: wrote in message 008801c222a5$a7c3cb10$d381f6cc@david">news:008801c222a5$a7c3cb10$

single quotes kill my scripts

2002-06-10 Thread Rob Roudebush
I have the following code - when someone enters a whatever ' whatever into one of my forms my script dies because of the single quote. Aggg... of course the first time I come across it is when my boss is testing out the script. $sth = $dbh->do( "insert into maintenance (owner, email, ma

Capturing signal to cgi form

2002-06-05 Thread Rob Roudebush
Does anyone know how to capture the carriage return to prevent a user from accidentally submitting the form by pressing 'return' before they actually finish completing the form? -Rob - Do You Yahoo!? Sign-up for Video Highlights of 2002 FIFA World Cup

why do I get the following warning for taint

2002-05-29 Thread Rob Roudebush
When I run perl -c myscript.cgi to test the syntax or perl -w ..., it produces this: Too late for "-T" option at maintenance.cgi line 1 (my line 1 is just the shebang line with the -T option). Does this mean that something is wrong? -Rob Carl Franks <[EMAIL PROTECTED]> wr

Re: Using strict with DBI

2002-05-15 Thread Rob Roudebush
d how do I just avoid the private or my declaration by specifically declaring a variable as a global variable (using vars?). foreach $var (@email){ $var =~ /(^.*)\\@.*/; @names = (@names, "$1 ");} @names = map (uc($_), @names); Todd Wade <[EMAIL PROTECTED]> wrote: "Rob Roudebu

Re: Using strict with DBI

2002-04-30 Thread Rob Roudebush
I've seemed to have narrowed down the problem to $sth variable, I guess I can't declare this as a private variable because it "prepares" it and needs to have it at least local or global to access it? Rob Roudebush <[EMAIL PROTECTED]> wrote: I think pulling the I

Using strict with DBI

2002-04-29 Thread Rob Roudebush
o I push warnings to browser? -Rob - Do You Yahoo!? Yahoo! Health - your guide to health and wellness

Password code!!

2002-04-11 Thread Rob Roudebush
Please help - I need to password protect my form by COB today. I initially had just a password field at the bottom to authenticate prior to clicking submit. Is there anything better - say something that launches when a link is selected to the form?? Nate Brunson <[EMAIL PROTECTED]> wrote:

Mod_perl

2002-03-22 Thread Rob Roudebush
urces would be appreciated. Thanks, Rob - Do You Yahoo!? Yahoo! Movies - coverage of the 74th Academy Awards®

Re: Secure Logoff from Session CGI

2002-03-15 Thread Rob Roudebush
I'm not sure, but how do you set a cookie and have it expire in ten minutes? -Rob --- Sean Abrahams <[EMAIL PROTECTED]> wrote: > I have a small series of web pages that talks to a > database and uses > forms to input/alter data. > > In order to get to the

Match and remove an element in an array

2002-03-15 Thread Rob Roudebush
Okay my script takes names from a fom and puts them into an array - then later I need to match a $variable (one of the names) against that array and take that specific element out of the array. I figure there is probably an easy function to do this? @array=(john, lucy, mike); $name=john I ne

Re: changing the defualt "nobody"@somecomputer.com (mailx)

2002-03-10 Thread Rob Roudebush
I'm using mailx from within a script, so I can't use it interactively open (MFH, "| mailx -s 'Subject' [EMAIL PROTECTED]") print MFH < wrote: On Fri, Mar 08, 2002 at 06:05:07PM -0800, Rob Roudebush wrote: > > My CGI script shoots out an automated

Re: changing the defualt "nobody"@somecomputer.com (mailx)

2002-03-08 Thread Rob Helmer
On Fri, Mar 08, 2002 at 06:05:07PM -0800, Rob Roudebush wrote: > > My CGI script shoots out an automated e-mail using mailx. Is there any way to >change the "nobody"? > -Rob Hi Rob, Yes, you can change the "From:" header. Are you actually constructing an em

changing the defualt "nobody"@somecomputer.com (mailx)

2002-03-08 Thread Rob Roudebush
My CGI script shoots out an automated e-mail using mailx. Is there any way to change the "nobody"? -Rob - Do You Yahoo!? Try FREE Yahoo! Mail - the world's greatest free email!

telling user agent the full path of a file to downlaod

2002-03-08 Thread Rob Helmer
this through it's web interface so I figured there must be a way. Thanks, Rob Helmer -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Running a CGI script as root

2002-03-08 Thread Rob Helmer
users ) to run specific commands ( or groups of commands ). You then just need to preface your command with "sudo", like instead of : cp /tmp/file /root/file You do : sudo cp /tmp/file /root/file HTH, Rob Helmer On Fri, Mar 08, 2002 at 11:35:01AM +0100, Paolo Cavicchini wrote:

Expanding param("someinput") in here document

2002-03-07 Thread Rob Roudebush
I'm trying to avoid assigning each param("somekey") to a variable in order to expand it in my here document. I can refer to it as a hash element without any variable assignment using - print param("somekey"); - but I don't want to have to use print statements instead of a here document to disp

CGI Design problem

2002-03-06 Thread Rob Roudebush
Okay, I created a HTML Form that calls a CGI script. After the form is submitted it sends out e-mails with a link inside to certain managers. They follow the link which is a separate HTML page that calls a separate CGI script. Question: I need to keep track of the managers who follow the link an

Regular expression help w/timestamp

2002-03-03 Thread Rob Roudebush
Has anyone ever turned the mysql timestamp format 20020303223726 into something more readable like - 03/03/2002 22:37:26? I am also trying to do this from an array (the timestamp is in a array). I just figured somebody has probably done this already. Thanks, Rob

Text input fields with preassigned text??

2002-03-01 Thread Rob Roudebush
Is there anyway to display text input fields with text already inside, that can be modified and submitted? Bhanu Prakash <[EMAIL PROTECTED]> wrote: Perl Listers, I'm unable to retrieve cookies once I set them! I can see my html headers on my page once they are set, along with the page, but w

Re: Escaping special characters for regular expressions

2002-02-28 Thread Rob Roudebush
Wouldn't single quotes do the trick? Curtis Poe <[EMAIL PROTECTED]> wrote: --- W P wrote: > i don't want to just escape those characters. they were merely examples. i > was hoping maybe there was some built-in way to escape ALL the characters > that mean anything to regular expressions. Well,

Re: Taking entire Oracle application (forms, reports) to WEB using CGI?

2002-02-28 Thread Rob Roudebush
I currently use mysql and it works great - I have at least 10 different forms running on Apache that I've created in the past month or so. fliptop <[EMAIL PROTECTED]> wrote: Bruce Ambraal wrote: > Hi All > How possible is this.? very. > This a good Idea? personally, i'd use postgresql (

Re: How can I Track the client IP, when a web request is made to my server.

2002-02-27 Thread Rob Roudebush
In the CGI script put $varwhatever=remote_addr; vijayak <[EMAIL PROTECTED]> wrote: All, I am Just a Beginner in this & I want to know about How to track the client IP, when a web request is made to my server, and pass is to one variable for further use. thanks a lot if you can give some

Re: Very serious security hole in your script

2002-02-26 Thread Rob
o count to 10 in Perl: > push@A,$_ for reverse q.e...q.n.;for(@A){$_=unpack(q|c|,$_);@a=split//; > shift@a;shift@a if $a[$[]eq$[;$_=join q||,@a};print $_,$/for reverse @A > > __ > Do You Yahoo!? > Yahoo! Sports - Coverage of the 2002 Olympic Games > http://sports.yahoo.com > -- Rob Good judgement comes from experience, and experience - well, that comes from poor judgement. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Uploading a file?

2002-02-25 Thread Rob Roudebush
Does anyone know how to upload a file to your site? -Rob - Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games

Multiple Print "Location:$link";

2002-02-07 Thread Rob
$link = "http://server.net/cgi-bin/epage.cgi?pin=$shawn\&mess=$mess print "Location:$link"; } if($rob ne "") { $link = "http://server.net/cgi-bin/epage.cgi?pin=$rob\&mess=$mess print "Location:$link"; } This works if only one checkbox

Re: Form parameter as filename?

2002-01-07 Thread Rob Cottingham
Thanks for the suggestion, Fliptop. Someone finally pointed out my problem: data tainting was on, and I had to untaint the data before Perl would let me use it in something as exposed as a filename. Whew!! Cheers, --rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

Form parameter as filename?

2002-01-07 Thread Rob Cottingham
_intro; ...then it works like a charm. I've also tried this with a keyword read in from a text file; that didn't work either. Any suggestions? Thanks, --rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: encrypt Pass

2001-12-06 Thread Rob
This is what I use. sub CryptPW { my($passWord) = $_[0]; my($salt) = join '', ('.', '/', 0..9, 'A'..'Z', 'a'..'z')[rand 64, rand 64]; my($crypted) = crypt($passWord, $salt); return $crypted; } Rob Good judgement comes

Re: System call from a CGI script

2001-10-24 Thread Rob
I setup something similar for an ISP once and I had the cgi-bin script right out the information to a file. Then I had another script that ran every 10 minutes and setup the user based on the info in the file. Rob Good judgement comes from experience, and experience - well, that comes from

RE: E-mail with the -T switch

2001-10-11 Thread Rob
Thanks, this one worked. $ENV{PATH}='/usr/sbin'; my($mailprog) = 'sendmail'; my($recipient) = '[EMAIL PROTECTED]'; open (MAIL, "|$mailprog -t") ; #Do mail stuff delete $ENV{PATH}; :wq -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: E-mail with the -T switch

2001-10-11 Thread Rob
open (MAIL, "|-", "$mailprog" , "-t"); gives me the following in the error log... Can't use an undefined value as filehandle reference at /home/rob/cgi-bin/completeOrder.cgi line 9. On Thu, 11 Oct 2001, Kipp, James wrote: > > > > my($name) =

E-mail with the -T switch

2001-10-11 Thread Rob
MAIL "Subject: Test\n\n"; format MAIL = Name: @<<<<<<<<< $name *** . write (MAIL); close(MAIL); The log file gives me this error message... Insecure $ENV{PATH} while running with -T switch at /

mod_perl/browser language

2001-10-03 Thread Rob
How can I detect the browser language using mod_perl? I tried this: $ENV{'HTTP_ACCEPT_LANGUAGE'}; but it doesn't seem to work.. Thanks. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

file type detection

2001-09-30 Thread Rob
Is there a simple way for a script to scan a file and know if it is a valid file type? What I mean is if I have an mpeg file that has been renamed to something like movie.html or movie.gif is there a way to know that it is not a valid html or gif file? Thanks. -- To unsubscribe, e-mail: [EMAI

making graphics..

2001-08-07 Thread Rob
Hi, I want to be able to create graphic logos witha perl script - any ideas on how to do this? What I mean is I will provide a list of titles and a list of font styles then the script will create a gif for each title using a random font style.. Can it be done? Is it difficult? I've never tried

RE: Packages, classes, cgi

2001-07-19 Thread Rob Sexstone
Hi Shawn, I'm currently working through the same learning curve on OOP in perl and bought a copy of 'Perl Developer's Guide' by Ed Peschko and Michele deWolfe. I'm finding the tutorial style suits my beginners/intermediate level, and it also comes with a CD full of code examples. (I plan to buy

RE: Dreaded Internal Server Error

2001-07-18 Thread Rob Yale
Thanks folks, Bill Luebkert showed me that three of my scripts were actually DOS files, and needed to be saved properly. I'm now a much happier camper! Rob Yale -Original Message- From: Lisa Nyman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 18, 2001 8:33 AM To: [EMAIL PROT

Dreaded Internal Server Error

2001-07-17 Thread Rob Yale
or is very general, but any help pointing me in a direction for debugging it would be most appreciated. Rob Yale -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

  1   2   >