Upgrade to Pro — share decks privately, control downloads, hide ads and more …

これはPerl? それともRuby? クイズ〜〜〜〜〜!!!- Perl or Ruby Quiz

moznion
October 07, 2024

これはPerl? それともRuby? クイズ〜〜〜〜〜!!!- Perl or Ruby Quiz

YAPC::Hakodate 2024のLT資料です

moznion

October 07, 2024
Tweet

More Decks by moznion

Other Decks in Technology

Transcript

  1. 2

  2. 2

  3. 2

  4. 2

  5. 2

  6. 2

  7.  $_ a = '5'; $_ b = '10'; print

    $ _ a + $ _ b; ྆ํͰಈ͕݁͘Ռ͕ҧ͏
  8. 2

  9. 2

  10. 2

  11. 2

  12.  package Filter; use Filter::Util::Call; sub im port { filter_add([]);

    } sub filter { my ( $ self) = @_ ; my $status = filter_read(); return $status if $status <= 0; s/\bclass\s+(\w+)/package $1 {/g; s/\bend\b/}/g; s/\battr_accessor\s+:(\w+)/sub $ 1 { my \$self = shift; \ @ _ ? \$self->{\ $ 1 } = shift : \$self->{\ $1 } }/g; return $status; };
  13. 2

  14. 2