develooper Front page | perl.beginners | Postings from September 2012

regx substitution question

Thread Next
From:
jet speed
Date:
September 5, 2012 06:33
Subject:
regx substitution question
Message ID:
CAG1VzceWWjwm_+_8txNQh1CyFONGHVDXkHYeibvbqphGjxcPYQ@mail.gmail.com
Hi All,

i have an regx question. i have the array contents, now i want to remove
the first 2 characters (fc) of each element in the array and store it in a
second array ex: @array2

@array ="fc20/1, fc30/22, fc40/3, fc20/1";

output

@array2 ="20/1, 30/22, 40/3, 20/1";

please advice.

Thanks
Sj


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About