T
Ting Wang
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
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