iLTC Home
Bookmark iLTC!
iLTC Google Boards

Google Groups
Receive The Code in Email!



Categories

Perl
  • Perl Tutorials Beginners

    Javascript
  • Javascript Tutorials
  • Javascript Tutorials Beginners

    HTML
  • HTML Tutorials



  • Perl with cheese...
    20,059

    iLoveTheCode.com
    Perl > Perl Tutorials How To Easy > What Environmental Variables are Available

    What Environmental Variables are Available



    In PERL, to view all Environmental Variables type:

    foreach $ev(keys %ENV) {
    print "$ev - $ENV{$ev}<br>";
    }

    The Environmental Variables names will be in all caps on the left while their value is on the right.

    To access any of these Environmental Variables anytime, just type $ENV{'VAR_NAME'} where VAR_NAME is the name of the Environmental Variable:

    Example:

    For the query string:
    $ENV{'QUERY_STRING'}

    For the user's IP address:
    $ENV{'REMOTE_ADDR'}



    Copy and Paste Perl Code:

    #!/usr/bin/perl

    print "Content-type:text/html\n\n";

    foreach $ev(keys %ENV) {
    print "$ev - $ENV{$ev}<br>";
    }

    exit;


    Click HERE to comment or discuss at iLoveTheCode GOOGLE Group
    Previous Article: Matching at the Beginning and End
    Next Article: Exit a Script or Subroutine in Perl





    Learning Web DesignLearning Web Design

    Jennifer Niederst ...

    New $29.69

    CSSCSS

    David McFarland

    New $23.09

    Creating Web SitesCreating Web Sites

    Matthew MacDonald

    New $19.77

    Pro CSS and HTML Design ...Pro CSS and HTML Design Patterns

    Michael Bowers

    New $29.69

    CSS MasteryCSS Mastery

    Andy Budd, Simon C...

    New $23.09

    CSSCSS

    Eric Meyer

    New $29.69

    JavaScriptJavaScript

    David Flanagan

    New $31.49

    Struts 2 in ActionStruts 2 in Action

    Don Brown, Chad Da...

    New $29.69


    Of Interest:
  • Add to End of an Array with Push in Perl
  • Exit a Loop with Last
  • OPEN and READ a Data File in Perl
  • Getting Server Time in Perl
  • Environmental Variables Available in Javascript using Navigator Object
  • Opening a REMOTE WINDOW in Javascript
  • Get String Length with Javascript
  • Javascript Lowercase Text
  • HTML Space
  • HTML Font Code
  • HTML Background
  • HTML Body Tag

  • More Articles:
  • Undefine an Array in Perl
  • Write a WHILE LOOP in Perl, Carefully
  • If, Elsif, and Else in Perl
  • Exit a Loop with Last
  • onClick Javascript
  • Use onLoad in Body Tag with Javascript
  • Create a Function in Javascript
  • Match with a Regular Expression, REGEX, in Javascript
  • Annoy Users with onBlur in Javascript
  • HTML Space
  • HTML Body Tag
  • HTML Center
  • HTML Font Code

  • Search iLTC w/ Google





    Recent Articles

  • Javascript Focus Form Field
  • Javascript Lowercase Text
  • Javascript Uppercase Text
  • Javascript Superscript Text
  • Javascript Subscript Text
  • Make Text Blink Using Javascript
  • Make a String into a Link in Javascript
  • Javascript Italics Text
  • Javascript Bold Text
  • Javascript Redirect
  • HTML Frames
  • HTML Color Chart
  • HTML Link
  • Javascript Status Bar








  • Perl Programming - Javascript Programming - Maybe Some PHP - Free Scripts - ILoveTheCode
    All Content © 2006 iLoveTheCode.com


    Contact Chris | About this Site


    316,799
    Counter by iLoveTheCode.com


    Last Modified: Friday, 23-Jun-2006 07:23:18 EDT