Movatterモバイル変換


[0]ホーム

URL:


variables /$;
(source,CPAN)
#$SUBSCRIPT_SEPARATOR
#$SUBSEP
#$;

The subscript separator for multidimensional array emulation. If you refer to a hash element as

$foo{$x,$y,$z}

it really means

$foo{join($;, $x, $y, $z)}

But don't put

@foo{$x,$y,$z}     # a slice--note the @

which means

($foo{$x},$foo{$y},$foo{$z})

Default is "\034", the same as SUBSEP inawk. If your keys contain binary data there might not be any safe value for$;.

Consider using "real" multidimensional arrays as described inperllol.

Mnemonic: comma (the syntactic subscript separator) is a semi-semicolon.

Perldoc Browser is maintained by Dan Book (DBOOK). Please contact him via theGitHub issue tracker oremail regarding any issues with the site itself, search, or rendering of documentation.

The Perl documentation is maintained by the Perl 5 Porters in the development of Perl. Please contact them via thePerl issue tracker, themailing list, orIRC to report any issues with the contents or format of the documentation.


[8]ページ先頭

©2009-2025 Movatter.jp