[Israel.pm] The syntax role of the colon (':')

Gaal Yahas gaal at forum2.org
Sat Sep 15 11:50:23 PDT 2012


These are perlio layers. man PerlIO has the story.

You can use this to encode/decode charsets on the fly; normalize newlines;
compress/decompress and so on.

On Sat, Sep 15, 2012 at 7:43 PM, Meir Guttman <meir at guttman.co.il> wrote:

> Hey folks!****
>
> Every once in a while I encounter the colon (‘:’) as part of the Perl
> syntax.****
>
> Examples are «*binmode STDOUT, ":utf8";*» and «*open my $ini_fh, "<:encoding(utf8)",
> $node_ini_fn;* ».****
>
> (Well, except the double colon as a directory-tree separator replacement.)
> ****
>
> Can anybody elucidate?****
>
> ** **
>
> Shana Tova and Gmar-Khatima Tova,****
>
> Meir****
>
>
> ****
>
> _______________________________________________
> Perl mailing list
> Perl at perl.org.il
> http://mail.perl.org.il/mailman/listinfo/perl
>



-- 
Gaal Yahas <gaal at forum2.org>
http://gaal.livejournal.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.perl.org.il/pipermail/perl/attachments/20120915/072e4b51/attachment.htm 


More information about the Perl mailing list