With the ‘bold’ option I can choose an element which should be printed bold.
Should I use ‘0’ or ‘1’ for the first element (one)?
my_print( [ 'one', 'two', 'three' ], { bold => 1 } );
or
my_print( [ 'one', 'two', 'three' ], { bold => 0 } );
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Indexes in Perl starts at
0so I suggest you implement it that way too.