tie_scalar.pl

Perl전문가

탐색기

C40
C++40
C#40
Dart40
Go40
Java40
JavaScript40
Kotlin40
Objective-C40
Perl
초급10
중급10
고급10
전문가5
closure_factory.pl
tie_scalar.pl
autoload.pl
moose_class.pl
dispatch_table.pl
마스터5
PHP40
Python40
R40
Ruby40
Rust40
Shell40
Swift40
TypeScript40
tie_scalar.pl
Click to focus
1
2
3
4
5
6
package TiedVar;
sub TIESCALAR { bless \$_[1], $_[0] }
sub FETCH { ${$_[0]} }
sub STORE { ${$_[0]} = $_[1]; print "Set to $_[1]\n" }
tie my $var, 'TiedVar', 42;
$var = 100;
0WPM0%0:000/172(0%)|Ln 1, Col 1
UTF-8Perl

관련 연습 문제