k_manimuthu has asked for the wisdom of the Perl Monks concerning the following question:
Hi monks,
I used multi-line comment for few places. The codes are working fine out of the array declearation. But the multi-line comment are not supported inside of the array.( Single line comment supported Here.)
Could someone please explain, why the comments not supported the place and how can i do this.
Below i placed the sample code and their error.
Thanks
Mani Muthu
Sample Code
use Data::Dumper; ($base, $next)=1; =mulitline comment supported my comment lines out of the array =cut @option=( [ 1,2, sub{ # few lines for # function process $base }], =for [ undef, undef, sub{ $next } ], =cut [3,4], ); print Dumper @option;
Error
syntax error at data.pl line 17, near "=" Execution of data.pl aborted due to compilation errors.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Multi-line comment not supported with in an array
by moritz (Cardinal) on Aug 13, 2010 at 06:16 UTC | |
|
Re: Multi-line comment not supported with in an array
by JavaFan (Canon) on Aug 13, 2010 at 08:36 UTC | |
|
Re: Multi-line comment not supported with in an array
by jethro (Monsignor) on Aug 13, 2010 at 08:44 UTC |