[26317] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 8492 Volume: 10

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Oct 6 09:05:20 2005

Date: Thu, 6 Oct 2005 06:05:07 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Thu, 6 Oct 2005     Volume: 10 Number: 8492

Today's topics:
        How can I use switch -s and 'use strict' at the same ti <wangtg@marvin.informatik.uni-stuttgart.de>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: 06 Oct 2005 14:05:43 +0200
From: Ting Wang <wangtg@marvin.informatik.uni-stuttgart.de>
Subject: How can I use switch -s and 'use strict' at the same time
Message-Id: <bca7jcqvoiw.fsf@marvin.informatik.uni-stuttgart.de>

Hi,
I am learning to use switches of perl and I met 
following question. I hope someone can help me.


I am trying to use switch -s with use strict, i 
wrote two scripts like:

#--- script 1 ----
#!/usr/bin/perl -s
use strict;
print $xyz; 

#--- script 2 ----
#!/usr/bin/perl -s
use strict;
my $xyz;
print $xyz;

Both of the codes can not be run.
Is there a chance using both -s and 'use strict' 
at the same time?


Thanks



------------------------------

Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>


Administrivia:

#The Perl-Users Digest is a retransmission of the USENET newsgroup
#comp.lang.perl.misc.  For subscription or unsubscription requests, send
#the single line:
#
#	subscribe perl-users
#or:
#	unsubscribe perl-users
#
#to almanac@ruby.oce.orst.edu.  

NOTE: due to the current flood of worm email banging on ruby, the smtp
server on ruby has been shut off until further notice. 

To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.

#To request back copies (available for a week or so), send your request
#to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
#where x is the volume number and y is the issue number.

#For other requests pertaining to the digest, send mail to
#perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
#sending perl questions to the -request address, I don't have time to
#answer them even if I did know the answer.


------------------------------
End of Perl-Users Digest V10 Issue 8492
***************************************


home help back first fref pref prev next nref lref last post