Created
March 22, 2012 02:47
-
-
Save ywindish/2155298 to your computer and use it in GitHub Desktop.
配列の要素数、配列の添え字最大値を求めるには
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 配列の要素数、配列の添え字最大値を求めるには | |
# http://codepad.org/SrwvXijK | |
# | |
use strict; | |
my @hoge = (1,2,3); | |
my $fuga = [1,2,3]; | |
print scalar @hoge, $#hoge; | |
print scalar @{$fuga}, $#$fuga; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment