#1609: tools/docs/filename_and_chapter.pl:  Can we make this work with our 
coding
standards?
------------------------------+---------------------------------------------
 Reporter:  jkeenan           |       Owner:  jkeenan
     Type:  bug               |      Status:  new    
 Priority:  normal            |   Milestone:         
Component:  coding_standards  |     Version:  2.3.0  
 Severity:  medium            |    Keywords:         
     Lang:                    |       Patch:         
 Platform:                    |  
------------------------------+---------------------------------------------

Comment(by particle):

 it seems to me that
 {{{
 open( my $OUT_FH, '>', "${MOD_BUILD_PATH}$item_list_ref->[$_[0]][0]" );
 }}}

 has {{{my}}} incorrectly scoped, so a "Useless use of constant in void
 context" warning is emitted.  i see no other reason for that code to fail.
 try

 {{{
 open( my ($OUT_FH), '>', "${MOD_BUILD_PATH}$item_list_ref->[$_[0]][0]" );
 }}}

 or better yet, don't declare a variable inside an op parameter list, do it
 first:

 {{{
 my $OUT_FH;
 open( $OUT_FH, '>', "${MOD_BUILD_PATH}$item_list_ref->[$_[0]][0]" );
 }}}

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/1609#comment:1>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets

Reply via email to