Is there a way to split by character in perl?
Say if I read a file and have only one line but I need to get 0-128 as one line, 129-256 as next, etc... Is there a way to do this?
You will have to use the substr function to get all 128
Hope that helps.Code:@array_here; for ($i=0; $i<length(string);$i++) { push(@array_here, substr(string,128*i,128); }
Is perl still being used??
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks