Jemand zu Hause?
XML::Simple ist es so, dass man mit der Syntax use XML::Simple qw(:strict); etwas schaltet. Anderes Beispiel ist use Fcntl qw(:DEFAULT :flock);.
Exporter.
2016-01-08T08:36:52 RaubtierGar nicht, hatten wir das nicht schon einmal als Frage von dir?
2016-01-08T08:36:52 RaubtierOder geht es dir um den ":"? Dann sieheExporter.
Quote[!]:tag All names in $EXPORT_TAGS{tag} anonymous array
1 2 3 4 5 6 7 8 9 10
package Foo; use 5.12.0; use Exporter 'import'; our @EXPORT_OK = qw(bar); our %EXPORT_TAGS = ('doppelpunkt' => [qw(bar)]); sub bar { say "Ich bin bar in Foo"; }
1 2 3 4 5 6
#!/usr/bin/perl use 5.12.0; require Foo; Foo->import(qw(:doppelpunkt)); bar();
Wie frage ich & perlintro
brian's Leitfaden für jedes Perl-Problem