Yep, if you want to bring that book home - drink some protein shakes, take
your vitamins, and work out for a month before you buy it.
-
Scot Robnett
inSite Internet Solutions
[EMAIL PROTECTED]
-Original Message-
From: Andrew Brosnan [mailto:[EMAIL PROTECTED]
Sent: Monday, August 04
# use it
$msg-to($to);
$msg-subject('Mail from SomeBusiness.com');
my $fh = $msg-open;
print $fh $mailbody;
$fh-close;
# When this mail comes in, it comes from
# mywebaccountuserID@mywebhostdomain
-
Scot Robnett
inSite Internet Solutions
[EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL
That did the trick. Thanks!
Scot R.
inSite
-Original Message-
From: Wiggins d'Anconia [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2003 7:59 PM
To: Scot Robnett
Cc: [EMAIL PROTECTED]
Subject: Re: Mail::Send question
Scot Robnett wrote:
Is there any way to force Mail::Send
Center: http://teddy.fcc.ro/
Email: [EMAIL PROTECTED]
- Original Message -
From: Scot Robnett [EMAIL PROTECTED]
To: Octavian Rasnita [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Sunday, July 27, 2003 8:35 PM
Subject: RE: PHP vs Perl
I think there are a couple of myths that need
...;
}
}
# OUTPUT I GOT FROM THIS:
This Input Is In All Caps
-
Scot Robnett
inSite Internet Solutions
Square West Center
454 West Jackson Street
Woodstock, IL 60098
(815)206-2907 office
(815)790-9687 mobile
[EMAIL PROTECTED]
http://www.insiteful.tv
http://www.mawebcenters.com/insite2000
-Original
This is similar to Wiggins, except it checks to make sure that
A. We have a two word sequence
B. We don't have a comma
These are still very basic levels of processing, though - Wiggins is right that we
would need to see a more thorough example of data ranges to know exactly what
Online docs
---
perldoc CGI
O'Reilly books
--
CGI Programming with Perl
CGI Cookbook
-
Scot Robnett
inSite Internet Solutions
[EMAIL PROTECTED]
-Original Message-
From: Shaw, Matthew [mailto:[EMAIL PROTECTED]
Sent: Monday, July 07, 2003 1:44 PM
To: [EMAIL
- The obvious: perldocs, CPAN, etc.
I'm not so good at grasping abstract data, I learn better by building,
breaking, and fixing until I get it right. Thanks in advance for any
pointers, especially for tutorial-type info with program building exercises.
-
Scot Robnett
inSite Internet Solutions
[EMAIL
How would one go about determining if something is 3 days old, 3 months old,
1 year old, etc., based on the following scenario?
The date that a user subscribes to our site is stored in a MySQL database in
the DATE format -mm-dd. So column 'SubscribeDate' looks like 2003-06-18,
for instance.
Seems like the same results would be achieved by not opening it at all
the first time through.
You're right, I commented out the extra
slurpage, moved close(OUT) and close(IN)
and it still worked.
So basically you have a very elaborate and expensive no-op.
Story
I was wondering why this array that I am attempting to create at line 21
seems to be empty. If I want to put chunks separated by p align=center
into the array, how could I do this differently to make it work?
##
- Kristofer Hoch wrote: -
split /p align=\center\/, $_
instead of matching p (space) a,l,i,g,n,=, \,c,e,n,t,e,r\
embrace it in parenthesis...no escaping neccessary...
split /(p align=center)/, $_
At least I think that I am reading this book properlyh
--- Scot Robnett [EMAIL PROTECTED
You're not pulling in the DBI functions, for one thing. Short example of
using the hashref function built into DBI is shown below.
#!/usr/local/perl -wT
use strict;
use CGI;
use DBI; # need this!
my $marker = 5; (or whatever number)
my
I don't know if you realize that you just wrote an SQL statement. Have you
considered putting all of this in a DB? Use the DB to do the searching and
sorting, and Perl to display the results.
#!/usr/bin/perl -w
# quick DB sample, I know it doesn't use strict, sue me :-)
use DBI;
# connect
$dbh
Dave,
I highly recommend most of the O'Reilly books, but especially Learning
Perl by Randal Schwartz. For spot reference I like SAMS Teach Yourself
Perl in 21 Days and IDG's Perl for Dummies, although there are portions
of each in which your more militant Perl programmers would say their
examples
perldoc CGI
-Original Message-
From: Annie [mailto:[EMAIL PROTECTED]
Sent: Friday, June 06, 2003 3:57 PM
To: [EMAIL PROTECTED]
Subject: how to create a submit button in perl?
hi i need to create a submit button on one of my web page and i need the
code to create that in
I need my web site to automatically send an email
confirmation. I'm using CGI Perl 5.6 on IIS on
Win2000.
What options are there for doing this?
MIME::Lite
Mail::Sendmail
Win32::OLE
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
Or even if you don't want them to be identical but just similar in that they
contain the same string somewhere within the variable, i.e.
$a2 = 'Lambott';
$a3 = 'fooLambottblah';
if ($a3 =~ /$a2/) {
# do something
}
else {
# do something
of the
string, rather than changing the case of the string.
-Original Message-
From: Dennis Stout [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 1:51 AM
To: Scot Robnett; [EMAIL PROTECTED]
Cc: Boon Chong Ang; Annie
Subject: Re: how to compare to string variables
Or even if you don't want
Okay,
I've looked at perlre, perlretut, perldoc.com, Learning Perl, and a
partridge in a pear tree, and I'm still stupid. :)
Does anyone out there have a working example script that does matching over
multiple lines, preferably an HTML file? I'm just having a lot of difficulty
with this and it
-
From: Andrew Brosnan [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 29, 2003 1:45 PM
To: Scot Robnett; [EMAIL PROTECTED]
Subject: RE: Another regex question
On 5/29/03 at 12:27 PM, [EMAIL PROTECTED] (Scot Robnett) wrote:
Will the file always be formated as below (with the blank line between
Andrew,
Thanks for trying to help.
Scot
-Original Message-
From: Andrew Brosnan [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 29, 2003 3:05 PM
To: Scot Robnett; [EMAIL PROTECTED]
Subject: RE: Another regex question
Try this:
#!/usr/bin/perl
#File:
use warnings;
use strict;
#set
Can anyone point me to what documentation I should be reviewing to solve the
following problem?
I have an HTML file and want to look through it for certain comment tags or
lines containing particular text strings, then split it up into ads and
articles, for instance. Let's say I have a section
case the greater than sign, which means open this
file for writing, needs to be contained inside the quotes.
open(OUTPUTFILE, $outputFile);
Scot R.
inSite
-Original Message-
From: Daniel Gross [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 1:07 PM
To: 'Scot Robnett
Not really. If your form allows uploads, your form allows uploads. That's
where DoS comes into play. Disguising the location of your code is a start,
but you still have to figure out what you're going to do if someone tries to
paste rogue code into your form or hit you with an obnoxiously large
(denial of service) on your server. My
advice is always to err on the side of caution. Never think that would
never happen on MY site.
-
Scot Robnett
inSite Internet Solutions
[EMAIL PROTECTED]
-Original Message-
From: Cool Hand Luke [mailto:[EMAIL PROTECTED]
Sent: Monday, March 31
Is anyone else seeing Matt's script archive when they try to go to CPAN?
Scot R.
inSite
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Ugh, completely forgot what day it was. Egg + face = me.
-
Scot Robnett
inSite Internet Solutions
[EMAIL PROTECTED]
-Original Message-
From: Hughes, Andrew [mailto:[EMAIL PROTECTED]
Sent: Monday, March 31, 2003 8:11 PM
To: '[EMAIL PROTECTED] '
Subject: RE: CPAN/Matt's???
doh
Anything I can do to make this an easier question? No responses...maybe I
didn't ask the question the right way or made it confusing as to what I am
trying to do? Would it help to split it up? Thanks for any advice...
Scot R.
-Original Message-
From: Scot Robnett [mailto:[EMAIL
Ahhh, the famous 'map' function - haven't tried it, so I guess it's about
time to give it a try. I wasn't too familiar with 'exists' either...thanks
for the advice.
-
Scot Robnett
-Original Message-
From: Bob Showalter [mailto:[EMAIL PROTECTED]
Sent: Friday, March 28, 2003 2:23 PM
This is untested
my $query = new CGI;
my %names = $query-Vars;
foreach my $key(keys(%names)) {
print $key\: $names{$key}\n if (($key eq 'name') or ($key eq 'email'));
}
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Looking at the code below, can anyone help me figure out how to compare the
e-mail addresses in @addresses with the e-mail addresses in @emails and
print out to the new file as shown, but minus the matching addresses?
Scot R.
inSite
#!/usr/bin/perl -w
use CGI;
use CGI::Carp
specific?
-
Scot Robnett
inSite Internet Solutions
[EMAIL PROTECTED]
-Original Message-
From: Horace Franklin Jr. [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 26, 2003 10:30 AM
To: [EMAIL PROTECTED]
Subject: MIME::Lite
Clear DayHello,
I use this line in my script: use MIME::Lite
I
Cool idea...thanks!
-
Scot Robnett
inSite Internet Solutions
[EMAIL PROTECTED]
-Original Message-
From: Bob Showalter [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 26, 2003 1:38 PM
To: 'Scot Robnett'; [EMAIL PROTECTED]
Subject: RE: Replacing/deleting line in a text file
Scot
/html\n\n;
-
Scot Robnett
inSite Internet Solutions
[EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
;
# etc.
-
Scot Robnett
inSite Internet Solutions
[EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Yes, but it's not correct, there's your premature end of script header right
there.
You have:
print Content-type:text/html\n\n;
It should be:
print Content-type: text/html\n\n;
-
Scot Robnett
inSite Internet Solutions
[EMAIL PROTECTED]
--
To unsubscribe, e-mail
These all helped me...
- Learning Perl
- Perl/CGI Cookbook
- CGI Programming with Perl
- Standard POD documentation
- http://www.perldoc.com
Scot Robnett
inSite Internet Solutions
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e
Wow! Quite a detailed response...thank you.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, March 07, 2003 9:25 AM
To: Scot Robnett
Cc: [EMAIL PROTECTED]
Subject: RE: Getting a STDOUT value
Remember to include the list in your replies, so
Does anyone know how I capture the value of an operation that defaults to
STDOUT? For instance if I want to do something like
#!/usr/bin/perl -w
use strict;
my $value = `perl -c someapp.cgi`; # prints to STDOUT
print Content-type: text/html\n\n;
print Result: $valueBR;
This obviously won't
I have a script which is supposed to e-mail a user their username/password
info as long as their e-mail address is in the database. The following code
works if the address is in the database (it prints the approval page and
sends the mail with the correct information), but if the address is -not-
Myself, I'd go with
$lowercase_email = lc($email);
-
Scot Robnett
inSite Internet Solutions
[EMAIL PROTECTED]
-Original Message-
From: David Gilden [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 1:13 PM
To: [EMAIL PROTECTED]
Subject: lower casing email address
,NULL,$value)|) if($key eq fax);
$sth-execute;
}
# Commit the changes.
$dbh-commit;
# Disconnect from the database.
$dbh-disconnect;
1;
-
Scot Robnett
inSite Internet Solutions
[EMAIL PROTECTED]
-Original Message-
From: T. Murlidharan Nair [mailto:[EMAIL PROTECTED]
Sent
a web host that willingly installs modules for
you. I'm working with one now that is great about this. If you'd like more
info, e-mail me offline from the list. Thanks!
-
Scot Robnett
inSite Internet Solutions
[EMAIL PROTECTED]
-Original Message-
From: Rene Verharen [mailto:[EMAIL
' = 'three',
'key3' = 'four');
# $list{'key2'} gives you three
# You can't have another key2 key,
# but the same -value- can be
# associated with multiple keys if
# desired.
-
Scot Robnett
inSite Internet Solutions
[EMAIL
You might want to just use redirect(), check perldoc CGI
-
Scot Robnett
inSite Internet Solutions
[EMAIL PROTECTED]
-Original Message-
From: Admin-Stress [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 09, 2002 2:42 PM
To: perl cgi
Subject: html redirect using CGI.pm
Hi,
Could
('Redirecting to login page'),
end_html;
-
Scot Robnett
inSite Internet Solutions
[EMAIL PROTECTED]
-Original Message-
From: Admin-Stress [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 09, 2002 3:45 PM
To: perl cgi
Subject: RE: html redirect using CGI.pm
print $query-redirect(-uri
and Settings\SRobnet\Desktop\test.xls
How can I get it to just leave the filename as test.xls on the remote
server without appending my entire local path to it?
-
Scot Robnett
inSite Internet Solutions
[EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
it
would be great to know what it was; can you please post a link to any help
docs? Thanks.
Scot R.
inSite
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 04, 2002 11:55 AM
To: Scot Robnett; Octavian Rasnita
Cc: [EMAIL PROTECTED]
Subject
Thanks to all for your input on this.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Thanks again everyone. Based on your input, reading the docs, and doing some
evaluation of our own needs, we decided on Red Hat 8.0, which comes with
Perl 5.8.0, Apache 2.0, and with the mod_perl package. It all goes on a Dell
PowerEdge 2600 144 GB (108 usable) RAID 5 with a 512 MB Xeon.
#1.) I guess the answer to question one is simply to
create a directory somewhere within my user
access/document tree, and then give it the proper
access permissions.
I prefer to put them in a directory
that is not in the HTML document tree
if at
used to one flavor and you
know what they say about fixing things that ain't broke.
Opinions, comments, suggestions?
-
Scot Robnett
inSite Internet Solutions
[EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
.
-
Scot Robnett
inSite Internet Solutions
Square West Center
454 West Jackson Street
Woodstock, IL 60098
(815)206-2907 office
(815)790-9687 mobile
[EMAIL PROTECTED]
http://www.insiteful.tv
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Saturday, November 23
quick question: I noticed that you called the configuration file
httpd.config. Since its actual name is httpd.conf, I wonder if it's as
simple as renaming your configuration file? If you already have it named
httpd.conf, then never mind this question. :)
-
Scot Robnett
inSite Internet Solutions
, punctuation, and spacing
correct.
-
Scot Robnett
inSite Internet Solutions
[EMAIL PROTECTED]
-Original Message-
From: Ramon Hildreth [mailto:ramon;ramonred.net]
Sent: Saturday, November 02, 2002 2:49 PM
To: [EMAIL PROTECTED]
Subject: Form-mail blues
Hi, I don't have access to the error
DuBois, and the
O'Reilly book Programming the Perl DBI is always a good reference point.
-
Scot Robnett
inSite Internet Solutions
Square West Center
454 West Jackson Street
Woodstock, IL 60098
(815)206-2907 office
(815)342-6480 mobile
[EMAIL PROTECTED]
http://www.insiteful.tv
-Original
Avoid Javascript is a pretty far-reaching statement. If you want to launch
a popup window, Perl isn't going to do that, Javascript is. It only takes
one or two lines of client-side code. There are easy-to-follow Javascript
primers at
http://javascript.internet.com and
PROTECTED]
Subject: Re: pop-up window with database access
On Mon, 30 Sep 2002 10:28:51 -0500, [EMAIL PROTECTED] (Scot Robnett)
wrote:
Avoid Javascript is a pretty far-reaching statement. If you want to
launch
a popup window, Perl isn't going to do that, Javascript is. It only takes
one or two lines
it's a hotmail
address and sending only plain text to hotmail, while sending html to
all others)
Does anyone have an idea how to solve that problem?
Thanks for your help,
Sven
On Montag, September 16, 2002, at 06:48 Uhr, Scot Robnett wrote:
Yes, you can send text attachments. It's all
IMG SRC=cid:img.jpg;
/P
/BODY });
# Attach the image
$msg-attach(Type = 'image/gif',
Id = 'img.gif',
Path = '/path/to/img.gif');
# Send it
$msg-send();
-
Scot Robnett
inSite Internet Solutions
[EMAIL PROTECTED
)
{
# boot 'em
}
else
{
# do your thing
}
-
Scot Robnett
inSite Internet Solutions
[EMAIL PROTECTED]
http://www.insiteful.tv
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Try printing the content type before your HERE doc, not within it.
Scot R.
inSite
-Original Message-
From: Jimmy George [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 13, 2002 2:03 AM
To: cgi
Subject: real beginners stuff
Hello World
If I logon to the web via (say) server_a and
You can use Javascript to pull the time off their system clock, assuming
their clock is set correctly. Server-side, you can use an ARIN search on
their IP to get their location, but in that case you're relying on the IP
not being spoofed and/or all of the lookups actually working, which is not a
. In most cases, I've found that my clients invariably need some
customization that isn't available in a canned shopping cart script.
Authorize.net has a huge list of Authorize.net-compatible shopping carts
here:
http://www.authorizenet.com/alliances/carts_list.php
-
Scot Robnett
inSite Internet
I'm assuming your best bet would be to find the IP using the first line of a
ping or traceroute and regex-ing out the extraneous stuff, then using
'whois -a' (which does an ARIN search) and extracting the 4th line to get
the country.
Anybody have any easier/faster ideas?
Scot R.
inSite
--
, but it's a step closer...
HTH someone,
TommyGun.
-Original Message-
From : Scot Robnett [EMAIL PROTECTED]
To : David T-G [EMAIL PROTECTED]; perl beginners cgi
[EMAIL PROTECTED]
CC : Bob Showalter [EMAIL PROTECTED]Date : 22 July 2002
19:48:17
Subject : RE: Running CGIs offline
Just a note
I have been interested in this sort of thing for awhile also. Looking
forward to any helpful info!
Scot R.
inSite
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 22, 2002 12:06 PM
To: [EMAIL PROTECTED]
Subject: Running CGIs offline
I'm
Just a note to throw in my own WOOOH :)
Gotta try it.
Scot R.
inSite
-Original Message-
From: David T-G [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 22, 2002 1:22 PM
To: perl beginners cgi
Cc: Bob Showalter
Subject: Re: Running CGIs offline
Bob, et al --
and then Bob
A common mistake is to print a header and then do a redirect, which slows
the process down because essentially you have a script and a page competing
to generate a header. When using redirect(), do not do this:
#!/usr/bin/perl
use CGI;
my $q = new CGI;
print
Do you think the clients browser goes and Posts the form again to the new
URL?
No, I don't think that is what's happening.
Once you post the info, the script is processing
it and doing the redirect, but I don't think it is
posting the entire string of nv pairs
I might have suggested doing authentication a little bit differently, as it
appears that you are using a plain text file with unencrypted
username/password data. But if you just want to redirect based on what
you've got and you're not extremely concerned about security in this
instance, this
.
#
Regards,
Scot Robnett
inSite Internet Solutions
[EMAIL PROTECTED]
http://www.insiteful.tv
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002
--
To unsubscribe, e-mail: [EMAIL
Can you telnet or SSH into your server? Do they have the CPAN module
installed? If the answers to those 2 questions are yes, try
perl -MCPAN -e 'install Bundle::DBI'
I don't *think* this module is of the pure perl variety, so my suspicion is
that it has to be installed by whoever is
includes:
http://hoohoo.ncsa.uiuc.edu/docs/tutorials/includes.html
Scot Robnett
inSite Internet Solutions
[EMAIL PROTECTED]
-Original Message-
From: Rafael Cotta [mailto:[EMAIL PROTECTED]]
Sent: Sunday, June 30, 2002 11:17 PM
To: [EMAIL PROTECTED]
Subject: Executing cgi from html
Hi all
, 2002 9:27 AM
To: [EMAIL PROTECTED]
Subject: RE: cgi probs
yes it is, but i am not sure if it is setup right.
like i say i have installed linux, but haven't done anything with apache.
What do i need to do to configure and run apache, as that could well be my
problem.
thanks
Ian
Scot Robnett
on Thu, 27 Jun 2002 02:54:10 GMT, [EMAIL PROTECTED] (Scot Robnett)
wrote:
Its pretty hard to make it more simple than:
use Form;
my %input = Form();
Let me try.
use CGI;
%params = $q-Vars;
Try again. Your code throws
are returned
as a packed string separated by \0.
Scot R.
inSite
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 27, 2002 10:44 AM
To: Scot Robnett; [EMAIL PROTECTED]
Cc: Felix Geerinckx
Subject: Re: CGI.pm v/s roll-your-own
True. Whew, my hand hurts from all that extra typing. ;)
Scot R.
-Original Message-
From: John Brooking [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 27, 2002 1:50 PM
To: Scot Robnett; [EMAIL PROTECTED]
Cc: Felix Geerinckx
Subject: RE: CGI.pm v/s roll-your-own [WAS:] Displaying
I hate to ask the obvious, but is your web server running on that box?
Scot R.
-Original Message-
From: Ian Rogers [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 27, 2002 5:19 PM
To: [EMAIL PROTECTED]
Subject: cgi probs
Hi
I have set up my machine running suse
You need to check out the LWP module.
http://search.cpan.org/doc/RSE/lcwa-1.0.0/lib/lwp/lib/LWP.pm
Scot R.
inSite Internet Solutions
[EMAIL PROTECTED]
http://www.insiteful.tv
-Original Message-
From: Fred Sahakian [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 24, 2002 9:49 AM
To:
Assuming you are on UNIX, run your script suid. For example, if your script
was called auth.cgi, here is what you would do:
1st, at the command line:
chmod 4711 auth.cgi
2nd, change your shebang line in your script to include the -U (run as user)
flag:
#!/usr/bin/perl -U
Now
You are trying to assign a static value to something that comes from the
form. If you create a field called comments (or anything you want to call
it, that's just what I chose) on your form and then type your test string,
it will work with the following change to your code:
emacs is a good one. I also like TextPad (www.textpad.com).
Scot R.
inSite Internet Solutions
[EMAIL PROTECTED]
http://www.insiteful.tv
-Original Message-
From: Jonathan Gines [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 24, 2002 11:19 AM
To: Francesco Scaglioni; [EMAIL PROTECTED]
Sorry, that was hasty...shoulda been something more like
my $file = '/path/to/file';
open(THEFILE,$file);
my @ary = THEFILE;
close(THEFILE);
for my $line(@ary) {
if($line !~ /^\d/) {
}
}
-Original Message-
From: Bo Mangor [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 20,
if($string =~ /^[0-9]/)
checks to see if the string starts with 0. If it doesn't, it checks if the
string starts with 1. If it doesn't, it checks if the string starts with 2,
and so on until the condition is true. If the condition is never true, then
it will do whatever is in your else {} (or
method for reading uploaded files might have been slightly
convoluted, but it still works...
Scot Robnett
inSite Internet Solutions
[EMAIL PROTECTED]
http://www.insiteful.tv
There are only two things in life,
but I forget what they are. - John Hiatt
---
Outgoing mail is certified Virus Free
4711
and #!/usr/bin/perl -U).
At any rate, you want to avoid these two things:
- Leaving the password in plain text
- Leaving the directory world-writeable
Scot Robnett
inSite Internet Solutions
[EMAIL PROTECTED]
http://www.insiteful.tv
-Original Message-
From
What you are doing is not commenting; you're creating POD documentation. To
comment out lines in Perl, use the # character.
#!/usr/bin/perl -w
print Hello, world! \n;
# This is a comment where you
# can write about what you're
# doing in a particular block
# so other programmers won't
# be
Programming the Perl DBI
http://www.oreilly.com/catalog/perldbi/
SAMS Teach Yourself SQL in 10 Minutes
(It's a lie but it's still a helpful book)
http://www.amazon.com/exec/obidos/ASIN/0672321289/qid=1023301413/sr=1-1/ref=
sr_1_1/002-4842183-8613640
-Original Message-
From: Maureen
://www.cgi-resources.com/Programs_and_Scripts/Perl/ and
http://www.scriptsearch.com/Perl/Scripts_and_Programs/
And stay on this list, of course. :)
Scot Robnett
inSite Internet Solutions
[EMAIL PROTECTED]
[EMAIL PROTECTED]
-Original Message-
From: John Pitchko [mailto
]
Subject: RE: Replacing with Regular expressions
Scot Robnett wrote at Tue, 04 Jun 2002 05:13:13 +0200:
$foo =~ s/\W*/_/g;
http://www.oreilly.com/catalog/regex/
...
I want to allow only the a-z, A-Z, and 0-9 characters and I want to
replace all others with _ when
writing the file
that
is accessible with a browser via HTTP.
For full documentation, look here:
http://httpd.apache.org/docs-2.0/programs/htpasswd.html
Or in your local Apache administration guide.
Regards,
Scot Robnett
inSite Internet Solutions
[EMAIL PROTECTED]
[EMAIL PROTECTED
of attachments. If interested in learning
more about it, just go to CPAN and search the module documentation.
Scot Robnett
inSite Internet Solutions
[EMAIL PROTECTED]
[EMAIL PROTECTED]
-Original Message-
From: Camilo Gonzalez [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 03, 2002 3:49 PM
Does PINE do anything well? ducks
Wait! I'm thinking. Is this a trick question? ;)
Scot R.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.365 / Virus Database: 202 - Release Date: 5/24/2002
--
To
that it can
run -only- as the user, not even as the httpd
daemon. (#!/usr/bin/perl -U with the script
directory chmod'd 4711)
Scot Robnett
inSite Internet Solutions
[EMAIL PROTECTED]
[EMAIL PROTECTED]
-Original Message-
From: David T-G [mailto:[EMAIL PROTECTED
John,
Thanks for that link. Good reading/advice.
Scot R.
-Original Message-
From: John Brooking [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 30, 2002 12:02 PM
To: David T-G; Beginners CGI
Subject: Re: URL for security issue?
Actually, I may have just found it. I think it was
/) # Compare this line w/next line
{
next; # If it matches, skip it
}
else {
print Address = $sorted[$i] \n;
}
}
Scot Robnett
inSite Internet Solutions
[EMAIL PROTECTED]
[EMAIL PROTECTED]
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http
Tagore,
Good points, and well taken. I was definitely planning to modify case using
tr/[A-Z]/[a-z]/ but just hadn't gotten that far yet.
I hadn't considered the hash idea but it makes a hell of a lot more sense
than what I was doing. Thanks.
Scot Robnett
inSite Internet Solutions
[EMAIL
(/=/,$_); # split each line on '='
print Your $field is $value. \n;
}
Scot Robnett
inSite Internet Solutions
[EMAIL PROTECTED]
[EMAIL PROTECTED]
-Original Message-
From: ChaoZ Inferno [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 17, 2002 11:38 AM
To: [EMAIL PROTECTED]
Subject: Re: regular expression
1 - 100 of 129 matches
Mail list logo