> 2003/08/23 (土) 03:46:40 ◆ ▼ ◇ [mirai]> > 少しくらいなら
> メインループで
> &hoge(key, var);
> sub hoge{
> %fh;
> $filepass = './hoge/hoge.dat';
> $fh{$_[0]} = new IO::File ">> $filepass" or die "$!";
> print $fh{$_[0]} $_[1];
> }
> てな風に書くと
> String found where operator expected at hoge.pl line 175, near "} "$_[1]""
> (Missing operator before "$_[1]"?)
> syntax error at hoge.pl line 175, near "} "$_[1]""
> Execution of hoge.pl aborted due to compilation errors.
> て怒られます(;´Д`)どこがどう間違ってるますか
print "$fh{$_[0]} $_[1]";
って感じ?
参考:2003/08/23(土)03時35分18秒