For some reason, when I turn on taint checking, my script dies on the line
where I open up sendmail to send an email:
**
my ($inOrderTxt) = (param('ordertxt') =~ /([\s!-~]+)/);
my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime;
I'm pretty new to CGI programming too, so I probably can't answer your
original question, but I would suggest that the first line of your script
be:
#!/usr/bin/perl -wT
The -w turns on warnings if your script does one of a list of things that
are screwy, like assigning a variable and never usin
Or how about this?
use File::Copy;
print "\n\n";
copy "myfile.txt", \*STDOUT;
print "\n\n";
- B
> Hello!
>
> An example would look like this:
>
> #!/usr/bin/perl -w
> use strict;
> use CGI qw(:standard);
>
> my $file_loc = "bla";
> my @file;
>
> if (open(FILE, $file_loc)) {
> @file = ;
I'm still very much a beginner, but I'm starting to see how establishing a
concept of sessions could be quite handy for my website. So I was thinking
of coming up with session ids, which could be some encoded combination of
their ip address, user name, and the date/time of that session's start.
Yes, Wiggins and Sean, thank you! That was just the information I needed to
point me off in the right direction.
Thanks again.
- Bryan
>>
>>
>> I'm still very much a beginner, but I'm starting to see how establishing a
>> concept of sessions could be quite handy for my website. So I was