LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Perl problem, add CR+LF to each element in array (https://www.linuxquestions.org/questions/linux-software-2/perl-problem-add-cr-lf-to-each-element-in-array-930857/)

qrange 02-23-2012 06:32 AM

Perl problem, add CR+LF to each element in array
 
I got a problem in Perl. This is my array:
Code:

@myarray = ($o1 .. $o2);
(where $o1 and $o2 are some numbers). I need to append a CR+LF to each element in the array.
Can someone please help me?
thanks.

sorry if wrong (sub)forum..

qrange 02-23-2012 07:26 AM

found the solution here: http://perlmeme.org/tutorials/arrays.html


All times are GMT -5. The time now is 04:52 PM.