HP3000-L Archives

July 1997, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Mark Bixby <[log in to unmask]>
Reply To:
Date:
Mon, 28 Jul 1997 13:08:40 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (48 lines)
John Korb writes:
>
> OK, tonight I'm going to download Perl 5.003 to replace the Perl 5.001
> that I'm presently using.  But before I do, can someone explain the
> following?  Why are CONTENT_LENGTH and cl null in Perl, when
> CONTENT_LENGTH displays properly in the shell?
>
>    shell/iX> echo $TZ
>    EST5EDT
>    shell/iX> echo $CONTENT_LENGTH
>    19

Methinks you probably need to "export CONTENT_LENGTH" here from sh before
you invoke Perl....

>    shell/iX> /usr/local/bin/perl
>       print "TZ = $ENV{'TZ'}\n";
>       print "CONTENT_LENGTH = $ENV{'CONTENT_LENGTH'}\n";
>       $tz=$ENV{'TZ'};
>       $cl=$ENV{'CONTENT_LENGTH'};
>       print "tz = $tz\n";
>       print "cl = $cl\n";
>    :eod
>    TZ = EST5EDT
>    CONTENT_LENGTH =
>    tz = EST5EDT
>    cl =
>    shell/iX>
>
> Thanks!
>
> John
> --------------------------------------------------------------
> John Korb                            email: [log in to unmask]
> Innovative Software Solutions, Inc.
>
> The thoughts, comments, and opinions expressed herein are mine
> and do not reflect those of my employer(s), or anyone else.
>


--
Mark Bixby                      E-mail: [log in to unmask]
Coast Community College Dist.   Web: http://www.cccd.edu/~markb/
District Information Services   1370 Adams Ave, Costa Mesa, CA, USA 92626-5429
Technical Support               +1 714 438-4647
"You can tune a file system, but you can't tune a fish." - tunefs(1M)

ATOM RSS1 RSS2