PDA

View Full Version : A few quick questions


Sven33
12-13-2005, 10:13 AM
Ok, I have a few issues I'm wondering about.

1.) What is the CGI method for error-handling. I think the book is saying it's "carp," but I'm not 100% certain.

2.) What does the h2xs tool do? I want to say assists in the creation of modules...or something that has to do with C++.

3.) Is an example of a subroutine a user defined routine? If so, I know the last must be a true value (correct?) so therefore any numerical value other than 0 is acceptable?

4.) I'm confused as to what exactly # does in a filehandle. For example, what would # +< do? Wouldn't < read the file....and the + connect the two file handles?



Any help would be greatly appreciated. Thanks in advance.

FishMonger
12-13-2005, 04:32 PM
These sound like homework assignment questions.

The answers are found in almost any Perl book or from a few google searches.

FishMonger
12-13-2005, 04:39 PM
http://search.cpan.org/~lds/CGI.pm-3.15/CGI/Carp.pm
http://search.cpan.org/~nwclark/perl-5.8.7/utils/h2xs.PL
http://www.perl.com/pub/a/2005/11/03/subroutines.html
perldoc -f open

Sven33
12-13-2005, 06:16 PM
Thank You, I appreciate the help.