Thread Alias einer Packagevariable mit *variable = \$THISVAR; (8 answers)
Opened by GwenDragon at 2024-07-08 12:19

rosti
 2024-07-08 14:38
#196568 #196568
User since
2011-03-19
3463 Artikel
BenutzerIn
[Homepage]
user image
Du denkst schon richtig. Aber's geht bei mir auch nicht ;)

Auch das da geht nicht:

Code (perl): (dl )
1
2
3
4
5
6
7
use strict;
use warnings;

my $str = 'string';
*bar = $str;

print $bar; # not imported

Last edited: 2024-07-08 14:40:17 +0200 (CEST)

View full thread Alias einer Packagevariable mit *variable = \$THISVAR;