Help for this page

Select Code to Download


  1. or download this
    do "/path/to/config/file.conf";
    
  2. or download this
    # Config file for a perl script.
    
    $user = 'BazB'
    $pass = 'yaright';
    $server = 'foo.bar.com';
    
  3. or download this
    #! /usr/bin/perl -w
    
    ...
    do "/home/baz/testconfig.conf";
    
    print $server, "\n", $user, "\n", $pass, "\n";
    
  4. or download this
    Use of uninitialized value in print at ./readconfig.pl line 8.
    
  5. or download this
    use strict;
    my ($server, $user, $pass);
    
  6. or download this
    Name "main::user" used only once: possible typo at ./readconfig.pl lin
    +e 8.