Thread use strict will nicht so recht mitmachen: kleine Syntaxfrage (7 answers)
Opened by Gast at 2007-03-23 14:32

bloonix
 2007-03-23 16:49
#75298 #75298
User since
2005-12-17
1615 Artikel
HausmeisterIn
[Homepage]
user image
Code: (dl )
1
2
3
4
5
6
7
8
9
#!/usr/bin/perl
use strict;
my $a="b";
my $bb;

{ # start no strict block
  no strict 'refs';
  ${"b$a"}="irgendetwas";
} # end no strict block

eventuell "no strict" noch in einen extra Block schieben, damit der
nachfolgende Code nicht beeinflusst wird.\n\n

<!--EDIT|opi|1174661504-->
What is a good module? That's hard to say.
What is good code? That's also hard to say.
One man's Thing of Beauty is another's man's Evil Hack.

View full thread use strict will nicht so recht mitmachen: kleine Syntaxfrage