on Wed, 22 May 2002 00:22:30 GMT,
[EMAIL PROTECTED] (Jake) wrote:
> open(outfile, ">".$pathToXML ) or die ("couldnt open xml file");
> [...]
> Unquoted string "outfile" may clash with future reserved word at
> /var/www/cgi-bin/adminWorkReport2.cgi line 66.
> [...]
> open(assignFile, ">".$pathToA
Hi !
How can I convert a date value (I get via /bin/date) into a text value?
Thanks for your help.
Sven
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi all,
I am having some problem with sysread and syswrite. Example:-
I want to print out a variable to my client over the internet, but would
like to use syswrite and sysread would help to reduce mistakes in EOF
characters.
#!/usr/bin/perl
my $buffer;
my $test = "hello, how do u do";
#readi
on Wed, 22 May 2002 08:07:07 GMT, [EMAIL PROTECTED] (Chaoz
Inferno) wrote:
> I want to print out a variable to my client over the internet, but
> would like to use syswrite and sysread would help to reduce
> mistakes in EOF characters.
Why do you think that?
> #!/usr/bin/perl
> my $buffer;
>
Hi Sven,
I think you have to do it on another way.
Better to let perl find your date.
#!/usr/bin/perl
use Time::localtime
$tijd = localtime;
$year = $tijd->year+1900
print $tijd->sec;
print "Wir leben heute am jahr: $year";
In this order we have :
sec Seconds
min Minutes
hours hou
Well, the problem is that I have to print an html header back to the client,
and the usual print, I am getting irregular response?
Thus, I am hoping to use the sysread and syswrite command to help me pass
the html message over to prevent any EOF characters problem?
This is a rather sensitive i
Hi
I'l looking for a way to use a scalar in a regex. The snibblet below
shows in about what it is supposed to do.
if someone has a better idea how to compare the date value with the
$date_today value I extract from the text file, I'd be really happy
about any hints..
The snibblet doesn't work,
ok, found out myself why it didn't work.
I am not sure if it's an elegant chunk of code, but it works.
Since the data is in the $_ variable, fooling around with $date_today in
the regex coulnd't work out.
(Omitted =~ since I use $_.)
Sven
my $date = `/bin/date +%d.%m.%y`;
$date =~ tr/./-/;
cho
on Wed, 22 May 2002 09:54:33 GMT, [EMAIL PROTECTED] (Chaoz
Inferno) wrote:
> Well, the problem is that I have to print an html header back to
> the client, and the usual print, I am getting irregular response?
I never had any problems using 'print', in combination with the CGI.pm
module on an
Hi everyone,
I'm intressted in learning socket programming in perl.
does someone know of a good tutorial or mailing list that isn't
beginer or CGI oriented?
TIA
Tim
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
on Wed, 22 May 2002 10:26:34 GMT, [EMAIL PROTECTED] (Sven
Bentlage) wrote:
> my $date = `/bin/date +%d.%m.%y`;
> $date =~ tr/./-/;
> chomp $date;
There is no need to fork here. You can accomplish the same from
within Perl, by replacing the above lines with
my ($d, $m, $y) = (localtime)[3,
Hi Felix
thanks for the tips.
On Wednesday, May 22, 2002, at 01:20 PM, Felix Geerinckx wrote:
> You have a precedence problem here, since '||' has higher precedence
> than ','. You should either use
>
> open(FH, " open FH, "
didn't know that yet. fixed it.
> (Why are
on Wed, 22 May 2002 11:14:34 GMT, [EMAIL PROTECTED] (Tim
Fletcher) wrote:
> Hi everyone,
> I'm intressted in learning socket programming in perl.
> does someone know of a good tutorial or mailing list that isn't
> beginer or CGI oriented?
Invest in Lincoln Stein's "Network Programming with Per
I've gone through and read all the other posts in reply to this, and they
all seem to ignore a very simple solution.
First: strip off the \r\n:
s/\r\n/\n/sg
Then look for the pattern \n\n (which would indicate the existence of an
empty line. For example: "Some paragraph text\n\nA new paragraph")
On Wednesday, May 22, 2002, at 01:07 , ChaoZ InferNo wrote:
[..]
> I want to print out a variable to my client over the internet, but would
> like to use syswrite and sysread would help to reduce mistakes in EOF
> characters.
[..]
I back felix's main line - since sysread/syswrite are for
acces
On Tuesday, May 21, 2002, at 05:52 , Jake wrote:
[..]
> If the latter method works, that's cool, i havent tested it. I will admit
> that as I learn this stuff, I tend to do everything the hard way first,
> then trim it down.
I have test it on [darwin|solaris|redhat linux 7.2] - I could
get ove
drieux wrote:
> but if you wanted to 'clean em all'
>
> $line =~ s/[$eol]+/\n/g
>
> would find the case of
>
> \r
> \r\n
> \n
> \r\n\n
>
>
> and replace them all with a single '\n' for all
> occurances in the $line that one is going through
wouldn't this reg
On Tuesday, May 21, 2002, at 10:01 , Troy May wrote:
[..]
> His server is running RedHat 6.1 Cartman.
[..]
with little more than a quick peek at redhat.com - this
seems to be their old 6.1 release - so yes cron should be ok.
cf: man 5 crontab
> He needs to have a data file erased the fi
On Wednesday, May 22, 2002, at 03:26 , Sven Bentlage wrote:
> ok, found out myself why it didn't work.
> I am not sure if it's an elegant chunk of code, but it works.
> Since the data is in the $_ variable, fooling around with $date_today in
> the regex coulnd't work out.
> (Omitted =~ since I
Well, firstly, it ain't CGI, it's network programming.
Well, it's slightly one sublayer below HTML, it's HTTP request/response
headers. Thus, print, <>, read, write are not advisable, thus resorting to
these.
However, I would like to thank both felix and drieux for addressing this
problem. See
ChaoZ Inferno wrote:
> Well, firstly, it ain't CGI, it's network programming.
if it ain't, why are you posting to a cgi list?
http://learn.perl.org/ - choose another list.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I am concatenating several e-mail lists into one, and some of the addresses
are on multiple lists. I need to be able to print out a full, alphabetically
sorted list of all the names without printing duplicates. How would I alter
the following to make that happen?
This gets close; it *will* remove
Hi There,
I have a question about Perl in combination with Apache.
You can set restricted areas within Apache to force autentication.
Afterwards you can read the userid using :
my $user = ($ENV{'REMOTE_USER'});
But as you can see below, there also is a group called htuser in this case.
Does an
Someone please help me. I need to be able to untaint filehandles.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Scot Robnett wrote:
> I am concatenating several e-mail lists into one, and some of the
addresses
> are on multiple lists. I need to be able to print out a full,
alphabetically
> sorted list of all the names without printing duplicates. How would I
alter
> the following to make that happen?
>
>
BTW, one thing you might consider is that there may be duplicate email
addresses that differ only in case. You might want to check for that.
Tagore Smith
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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 PROTECT
--- Matthew Weier O'Phinney
<[EMAIL PROTECTED]> wrote:
> I've gone through and read all the other posts in
> reply to this, and they
> all seem to ignore a very simple solution.
>
> First: strip off the \r\n:
> s/\r\n/\n/sg
>
> Then look for the pattern \n\n (which would indicate
> the existence
Dudes,
Someone has to have some inkling how to open filehandles for writing whilst
running in taint mode (-T). C'mon there are some of the best Perl minds in
the world here. Is it impossible?
I've tried untainting the data I'm using to write with this snippet:
#untaint $count
if ($co
--- Camilo Gonzalez <[EMAIL PROTECTED]> wrote:
> Dudes,
>
> Someone has to have some inkling how to open filehandles for writing whilst
> running in taint mode (-T). C'mon there are some of the best Perl minds in
> the world here. Is it impossible?
[snip]
> but kept getting this error, "Insecure
Try Anacron
http://freshmeat.net/projects/anacron/?topic_id=136
-Original Message-
From: Troy May [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 22, 2002 12:02 AM
To: Beginners CGI List
Subject: Cron alternatives?
Hello,
A friend of mine has a task he wants to do daily, so I told him
31 matches
Mail list logo