Re: Getting Month Day from `date`

2001-09-12 Thread C.J. Collier
Heya Richard, Looks like your problem is the newline that date sticks on the end of its output. I suggest using the POSIX function strftime, or chomping the \n off of the date $d = `date "+%b %d"`; chomp $d; print "$d\n"; or use POSIX; $d = strftime("%d %b", localtime()); print "$d\n"; Cheer

Re: HTTP::Request get or post??y

2001-07-21 Thread C.J. Collier
POST sends a request and sets some CGI params. GET can be used to do the same thing, but you need to append a ?foo=bar&baz=wally to the url, if you want to send data to a CGI. If it's not a CGI, though I suggest using GET ;) I think you need a bit of HTTP and CGI background. I suggest reading

Re: CGI-PERL-HTML.......HELP!!!!!!!!!!!!!!!

2001-07-14 Thread C.J. Collier
Heya Rahul, You'd probably find all this information in CGI.pm. It takes a bit to get used to it, but after that, it's smooth sailing. For more info, run this at your command prompt: perldoc CGI CGI.pm comes with the Perl distribution, so you don't have to worry about grabbing it from CPAN,

Re: DBI fatal error message

2001-07-12 Thread C.J. Collier
Heya I.S, I think we need to be a bit more specific. You're not giving us any information (even wrong information) about how you connect to the database. We don't know for sure whether you're passing the right arguments. I am going to assume you're using MySQL, as it's a common database engine

Re: Doubt in the perl module Storable.pm

2001-07-12 Thread C.J. Collier
Heya Rajanikanth, It looks like the man page (perldoc Storable) gives a good description of what dclone does: __QUOTE__ MEMORY STORE The Storable engine can also store data into a Perl scalar instead, to later retrieve them. This is mainly used to freeze a complex structure

Re: using fetchrow_hashref()

2001-06-25 Thread C.J. Collier
You might consider Apache::DBI. I hear it does what you're interested in doing, but I haven't done much research on it. Good luck! Check out search.cpan.org :) C.J. cpan> i Apache::DBI Module id = Apache::DBI DESCRIPTION Persistent DBI connection mgmt. CPAN_USERID MERGL (Edmund Merg

Re: This is odd to me

2001-06-13 Thread C.J. Collier
Kirk, The most popular tutorial book for Perl is "Learning Perl" by Randal Schwartz et al. . I started learning from it, and look where I am now *grin* The 3rd edition should be coming out next month, so you may want to hold off on it and read some online docs 'till then, as it will probabl

Re: cookies and web

2001-05-01 Thread C.J. Collier
Heya Jeff, You might consider HTTP::Cookies. You can use it with LWP by telling the useragent to use a new cookie object to grab cookies from the HTML headers. You'll get a lot more from perldoc HTTP::Cookies, but following is an example, Cheers, C.J. #!/usr/bin/perl -w use strict; u

Re: subroutines in .pm

2001-04-27 Thread C.J. Collier
you might consider using the Package pragma: (File1.pm) use strict; Package File1; sub foo { print("Foo!\n"); } (end File1.pm) (File2.pm) use strict; Package File2; use File1; sub foo { print "File1::foo() -> "; File1::foo(); } (end File2.pm) (file main.pl) #!/usr/bin/perl -w use st