syntax - Why is the apostrophe sign a valid path separator in Perl -
in perl, call modules using ::
path separator. so, if have module on site/lib/gd/image.pm
, call use gd::image
.
however, long time ago found out can call use gd'image
, things my $img = new gd'image;
, , there modules on cpan using syntax on ther names/documentation.
what purpose or logic behind that? maybe, many things in perl, feature intended humanize sentences , allow create , use modules acme::don't?
does have other intention different ::
?
see perlmod explanation:
the old package delimiter single quote, double colon preferred delimiter
so, reason history.
Comments
Post a Comment