concatination warning

Randal L. Schwartz merlyn at stonehenge.com
Mon May 13 12:31:50 CDT 2002


~sdpm~
>>>>> "Joel" == Joel Fentin <joel at fentin.com> writes:

Joel> At 11:49 PM 5/12/02 -0700, Randal L. Schwartz wrote:
>>>>>>> "Joel" == Joel Fentin <joel at cts.com> writes:
>> 
Joel> How can I use $ENV{HOME} in a path without getting the
Joel> warning.
>> 
>> Which "the warning"?

Joel> The one mentioned in the subject of my email.

Your subject doesn't contain a complete error message.  That's why
I asked.

Joel>  More specifically:
Joel> [Mon May 13 12:55:45 2002] Inst.cgi: Use of uninitialized value
Joel> in concatenation (.) at /u/web/cuesuo/cgi-local/admin1/Inst.cgi
Joel> line 22. 

Joel> This message appears when the shebang ends in -w and the
Joel> following two lines of code are in the program.
Joel> BEGIN{use CGI::Carp qw(carpout fatalsToBrowser);
Joel> carpout(\*STDOUT);$|=1;}

Joel> I am not interested in suppressing the message; I'm interested in
Joel> removing its cause.


You'll get that when $ENV{HOME} is not defined.  If it's not defined,
don't use it.  Or set it to a null value.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
~sdpm~

The posting address is: san-diego-pm-list at hfb.pm.org

List requests should be sent to: majordomo at hfb.pm.org

If you ever want to remove yourself from this mailing list,
you can send mail to <majordomo at happyfunball.pm.org> with the following
command in the body of your email message:

    unsubscribe san-diego-pm-list

If you ever need to get in contact with the owner of the list,
(if you have trouble unsubscribing, or have questions about the
list itself) send email to <owner-san-diego-pm-list at happyfunball.pm.org> .
This is the general rule for most mailing lists when you need
to contact a human.




More information about the San-Diego-pm mailing list