Drkcore

06 09 2007 perl HOP Tweet

splitのLIMITパラメータ

splitにはlimitパラメータがあることをHOP読んでて知った。

$ $t = "a b c d e"
$ split /\ +/, $t 
a
b
c
d
e
$ split /\ +/, $t , 2
a
b c d e

splitっていろいろできんじゃん。

About

  • もう5年目(wishlistありマス♡)
  • 最近はPythonとDeepLearning
  • 日本酒自粛中
  • ドラムンベースからミニマルまで
  • ポケモンGOゆるめ

Tag

Python Deep Learning javascript chemoinformatics Emacs sake and more...

Ad

© kzfm 2003-2021