Reading a dot symbol (.) in perl
问题 I have a .conf file which looks like this: [offline_online_status] offline_online_status.offline_online_state=ONLINE How can perl read the dot symbol (.) in the value above? Can anybody teach me? 回答1: Try to use this, make your own modification: use CGI; use Config::Tiny; use Data::Dumper; use CGI::Carp qw(fatalsToBrowser); #location/directory of configuration file my $file = "your configuration file path"; my $Config = Config::Tiny->read($file); #reads the section, key and the value of the