guestbook problems

2001-12-17 Thread Lisa Neclos
ll be appended to the formdata.html file my $information = "$name\|$email\|$comments\"; sub sendmail { $from="$Neclos\@bellatlantic.net"; $to="$email"; $subject="Thank You!"; $sendmailpath="/usr/sbin/sendmail"; open (SENDMAIL, "| $sendmailpath

create another object

2001-11-29 Thread Neclos
Section 7.2.4 (Adv Perl Prog) contains two classes: RegularEmployee and HourlyEmployee. I need to create a third class called TempEmplyee with its own promote function also. (Note, I also need to create positions so the object can be promoted to them as necessary.) The Adv Perl Prog code is: p

can't use reference to hash in subroutine?

2001-11-08 Thread Lisa Neclos
I am getting the following error when trying to run this. I'm trying to pass a hash as a reference to the subroutine. ERROR - Type of Arg 1 to each must be hash (not private variable) my $ref_hash ; %hash = ("sky", "blue", "grass", "green", "apple", "red") ; $ref_hash = \%hash ; sub print { wh

create hash slice from hash

2001-10-31 Thread Lisa Neclos
I am attempting to create a hash slice from a hash. The hash is: %hash =("test1" => "test10", "test2" => "test12" , "test3" => "test13") I want the slice to include only the keys test1 and test3. How can I accomplish this? --

create hash and print all elements?

2001-10-22 Thread Neclos
I need to create a hash with fixed elements and print all elements. I keep getting errors when I try to run what I put together. I commented out the different ways I tried to run the print. Now I have no clue what to try next. use strict ; %hash = ("sky", "blue", "grass", "green", "apple", "