Created
December 1, 2012 13:43
-
-
Save KamilaBorowska/4182308 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl6 | |
use Config::INI; | |
my $ini = q:to 'END'; | |
[Server] | |
Name = BrokenIRC | |
Port = 6667 | |
[Operator] | |
Name = Perl 6 community | |
END | |
my %config = Config::INI::parse $ini; | |
print qq:to 'END'; | |
; Let me check some random server configuration. | |
$ini | |
; So, %config<Server><Name> would be running on port %config<Server><Port>. | |
; It appears to be operated by %config<Operator><Name>. | |
; If that would be real IRC server, obviously. | |
END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment