Skip to content

Instantly share code, notes, and snippets.

@KamilaBorowska
Created December 1, 2012 13:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KamilaBorowska/4182308 to your computer and use it in GitHub Desktop.
Save KamilaBorowska/4182308 to your computer and use it in GitHub Desktop.
#!/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