🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fj.lang.perl
Article #219

-wオプションのワーニング解除について

#219
From: Toshiki Murakami
Date: Wed, 25 Mar 1998 00:00
89 lines
3182 bytes
こんにちは
むらかみ@CSKと申します。

 次のプログラムでワーニングの解除ができません。
   (本当はもっと大きなプログラムなのですが.....)
 実害はないのですが気になってしょうがありません。
 ご存知の方教えてください。

  Linux  2.0.32 + perl 5.003      ワーニングがでる
  Solaris 2.5.1 + perl 5.004      ワーニングがでない
  Solaris 2.5.1 + perl 4.0.1.8    ワーニングがでない
 
 ( 【tr関数の正しい使い方を教えてください】のサブジェクトの
       方がよかったかなぁ ^^;     )

$ ./bbb.pl
Use of uninitialized value at ./bbb.pl line 3.
Use of uninitialized value at ./bbb.pl line 3.
XYZ
 

$ cat bbb.pl
#!/usr/bin/perl -w
$abc =    'xyz';
$abc =~   tr/a-z/A-Z/ ;
print    "$abc\n";
 

$ /usr/bin/perl -v

This is perl, version 5.003 with EMBED
     built under linux at Sep  3 1996 00:55:59
   + suidperl security patch

Copyright 1987-1996, Larry Wall

Japanization patch 4 by Yasushi Saito, 1996
Japanese EUC version.

Perl may be copied only under the terms of either the Artistic License
or the
GNU General Public License, which may be found in the Perl 5.0
sourcekit.
 

$ uname -a
Linux xxx 2.0.32 #2 Tue May 6 18:00:14 JST 1997 i586

----------------------------
Solarisバイナリのバージョン
----------------------------
$ uname -a
SunOS xxx 5.5.1 Generic_103640-08 sun4u sparc SUNW,Ultra-1

$ /usr/local/bin/perl -v

This is perl, version 4.0

$RCSfile: perl.c,v $$Revision: 4.0.1.8 $$Date: 1993/02/05 19:39:30
$Patch level: 36

Copyright (c) 1989, 1990, 1991, Larry Wall

Perl may be copied only under the terms of either the Artistic License
or the
GNU General Public License, which may be found in the Perl 4.0
sourcekit.
 

$ /usr/bin/perl -v

This is perl, version 5.004

Copyright 1987-1997, Larry Wall

Perl may be copied only under the terms of either the Artistic License
or the
GNU General Public License, which may be found in the Perl 5.0
sourcekit.
 

       _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
      (株)CSKオープンシステム事業部第1営業所
     村上 利樹 Toshiki_Murakami@cii.csk.co.jp
                        cte473@dentsu.co.jp
                     HFD01052@nifty.ne.jp
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
 
Technical Details
Message-ID: <35186D5D.90FFAFC4@niftyserve.or.jp>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: Japanese,JIS
X-Google-Thread: 1043e7,19852b512877b9b4,start
X-Google-Attributes: gid1043e7,public
From: Toshiki Murakami <HFD01052@niftyserve.or.jp>
Subject: -wオプションのワーニング解除について
Date: 1998/03/25
Message-ID: <35186D5D.90FFAFC4@niftyserve.or.jp>
X-Deja-AN: 337386911
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-2022-jp
Organization: Dentsu Inc. Japan
Newsgroups: fj.lang.perl