Strange problem with cookie script

2005-02-07 Thread Chris Brown
Hi, I am getting a strange problem with two cookie scripts I've written. The first, cookie_maker.cgi, creates two cookies containing a user id and a security key: #!/usr/bin/perl -w use strict; # creates cookies print "Set-Cookie:user=cbfb\n"; print "Set-Cookie:secid=1234\n"; #

Re: Problems installing Text-Iconv-1.4

2005-01-25 Thread Chris Brown
x-thread-multi/Gnome2/Vte/Install/vte2perl-version.h ./vendor_perl/5.8.5/i386-linux-thread-multi/Gnome2/Vte/Install/vte2perl.h ./vendor_perl/5.8.3/i386-linux-thread-multi/Gtk2/TrayIcon/Install/trayicon-autogen.h [EMAIL PROTECTED] wrote: - Original Message - From: Chris Brown <[EMAIL PROTECTE

Problems installing Text-Iconv-1.4

2005-01-24 Thread Chris Brown
Hi. I'm trying to install a local copy of the W3C HTML Validator. I've managed to install all the pre-requisites apart from Text-Iconv-1.4 - I get the following error message: /[EMAIL PROTECTED] Text-Iconv-1.4]# perl Makefile.PL Checking for iconv ... ok (added -liconv) NOTE: If you have multipl

Re: cpan slow ?

2005-01-21 Thread Chris Brown
I was having problems (in Peterborough, UK) but it all seems to be running fine again now. On Friday 21 Jan 2005 09:51, zentara wrote: > On Thu, 20 Jan 2005 23:18:20 +0530, [EMAIL PROTECTED] (Harsh Busa) > wrote: > > >hi > > > >i m trying to connect to search.cpan.org (from india ) and getting

handling flat-file layouts -- pack or sprintf or something else?

2001-05-24 Thread chris brown
Hello, Looking for style advice here. I'm trying to populate records into a flat-file layout for transfer to a mainframe (offtopic: the FAXed file layout I received says "prior revision: 11/01/81". Sweet!). Anyway, the layout requires that numerics be zero-filled to the left, so a 3-byte field

CR LF with UNIX and Windows (DOSish?)

2001-05-14 Thread chris brown
--- David Falck <[EMAIL PROTECTED]> wrote: >--snip-- I am pretty new at Perl so don't know the syntax to do this, but could you sidestep the issue and count the number of bytes in \n, then subtract as appropriate? Chris __ Do You Yahoo!? Yahoo! Au

Re: its not homework

2001-04-24 Thread Chris Brown
its no deal man...i got it to work...thanks a ton for the help you guys. Im sure it wont be long until next time. Chris Brown

its not homework

2001-04-24 Thread Chris Brown
i have done some cgi stuff like a guestbook and a script to display random images but i wanted to get deeper so i thought i would try this...im not in any classes...i guess you could call it personal homework...but its not really homework...thanks Chris Brown

[BPQ] help!! any idea whats wrong with this??

2001-04-24 Thread Chris Brown
so...this is suposed to count the words in FILE and return how many occourances of each word there were...its not working for me thoughits only returning the count for the last word in the file...help #!/usr/local/bin/perl open (FILE,"../www/main.php3"); @lines=; close(FILE); foreach $i (

help me understand $_

2001-04-22 Thread Chris Brown
i have read about it in 3 books and even used it in scripts i have made but i still dont truly know how to be sure what $_ contains...can anyone clear this up for me? Thanks Chris Brown

running a script from html

2001-04-22 Thread Chris Brown
i was wondering if anyone could fill me in on how to run a cgi script automaticly when an html page is loaded...reason being to show a random image on a page...thanks chris brown