The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
ããã§ãã access_log ããã¼ã¹ããã¨ãã«æ£è¦è¡¨ç¾ãã©ãæ¸ãã¹ããã§æ©ãå¿ è¦ããªããªã£ãã æ®éã« LogFormat combined ãªãã¡ã¤ã«ããã¼ã¹ããã¨ãã¯ããã§ããã my $foo = Regexp::Log::Common->new( format => ':extended', capture => [qw(host rfc authuser date request status bytes referer useragent)], ); my $re = $foo->regexp; my @fields = $foo->capture; while (<>) { my %data; @data{@fields} = /$re/; # do something } ã¡ãã£ã¨ã«ã¹ã¿ãã¤ãºãããå ´åããããªé¢¨ã«ãã¦æ¡å¼µãå¯è½ã my $format = q[%ho
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}