>  2003/08/23 (土) 03:48:02        [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]";
> って感じ?

ちゃうねん(;´Д`)それだと標準出力に"$fh{$_[0]} $_[1]"が出力されるよね
$fh{$_[0]}のファイル(./hoge/hoge.dat)に$_[1]を書き込みたいの

参考:2003/08/23(土)03時46分40秒