[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] Re: Welcome to macperl



Sorry if this is a known bug; the archive did not pop it up for me...

Config.pm subroutine myconfig seems to throw warnings as shown below.
Has anyone fixed this for all 10 warnings?  Would you be so kind as to
send me the fix?  

Thanks.

Regards, Mike


#!perl -w
#use strict;
#use Carp ();
#local $SIG{__WARN__} = \&Carp::cluck;
#use File::Basename;
use Config;
use Config qw(myconfig config_sh config_vars);
print myconfig();
#my ($app, $path) = fileparse($0);
print "$Config{'osname'}",
 "\n\nLibrary paths:\n", join ("\n" , @INC ) ;

__END__
Output: warnings thrown by "print myconfig();",
due to absence of definitions in $config_sh for variables such as 

SUBVERSION
useshrplib
libperl

and others which are left as an exercise for the reader 


# Use of uninitialized value.
File 'scsi:MacPerl 520r4 Ÿ:lib:Config.pm'; Line 469
# Use of uninitialized value.
File 'scsi:MacPerl 520r4 Ÿ:lib:Config.pm'; Line 469
# Use of uninitialized value.
File 'scsi:MacPerl 520r4 Ÿ:lib:Config.pm'; Line 469
# Use of uninitialized value.
File 'scsi:MacPerl 520r4 Ÿ:lib:Config.pm'; Line 469
# Use of uninitialized value.
File 'scsi:MacPerl 520r4 Ÿ:lib:Config.pm'; Line 469
# Use of uninitialized value.
File 'scsi:MacPerl 520r4 Ÿ:lib:Config.pm'; Line 469
# Use of uninitialized value.
File 'scsi:MacPerl 520r4 Ÿ:lib:Config.pm'; Line 469
# Use of uninitialized value.
File 'scsi:MacPerl 520r4 Ÿ:lib:Config.pm'; Line 469
# Use of uninitialized value.
File 'scsi:MacPerl 520r4 Ÿ:lib:Config.pm'; Line 469
# Use of uninitialized value.
File 'scsi:MacPerl 520r4 Ÿ:lib:Config.pm'; Line 469
Summary of my  ( patchlevel 0 subversion ) configuration:
  Platform:
    osname=MacOS, osvers=7.5, archname=
    uname=''
    hint=, useposix=true, d_sigaction=
    bincompat3= useperlio= d_sfio=
  Compiler:
    cc='C', optimize='', gccversion=
    cppflags=''
    ccflags =''
    stdchar='', d_stdstdio=define, usevfork=
    voidflags=, castflags=0, d_casti32=32, d_castneg=define
    intsize=32, alignbytes=, usemymalloc=, randbits=
  Linker and Libraries:
    ld='', ldflags =''
    libpth=
    libs=
    libc=, so=
    useshrplib=, libperl=
  Dynamic Linking:
    dlsrc=, dlext=, d_dlsymun=, ccdlflags=''
    cccdlflags='', lddlflags=''

MacOS

Library paths:
scsi:MacPerl 520r4 Ÿ:site_perl:MacPPC:
scsi:MacPerl 520r4 Ÿ:site_perl:
scsi:MacPerl 520r4 Ÿ:lib:MacPPC:
scsi:MacPerl 520r4 Ÿ:lib:
scsi:MacPerl 520r4 Ÿ:lib:MacPPC:
scsi:MacPerl 520r4 Ÿ:lib:
scsi:MacPerl 520r4 Ÿ:site_perl:MacPPC:
scsi:MacPerl 520r4 Ÿ:site_perl:
:
Dev:Pseudo:

# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org