CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner: Re: [BillKSmith] importing txt file to array problem: Edit Log



gerble1000
User

Oct 11, 2012, 6:47 AM


Views: 1867
Re: [BillKSmith] importing txt file to array problem

thanx for that but i realised that the arrays were working but it had carrage returns on the end. i have found a code that does remove the carrage returns but i am unsure how to do a foreach loop

here is what i have for the for loop


Code
foreach (@details){ 
$details[$_] =~ s/\r|\n//g;
}


what am i doing wrong here


(This post was edited by gerble1000 on Oct 11, 2012, 7:44 AM)


Edit Log:
Post edited by gerble1000 (User) on Oct 11, 2012, 7:44 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives