On Wed, Apr 10, 2013 at 03:46:00PM +0530, kavita kulkarni wrote: > Hi All,
Hello. > I want to extract certain char sets (e.g. char 4 to 9, char 11 to 14 etc.) > from each line of my file and store them in separate variables for further > processing. > My file size can vary from thousand to millions of lines. > If I use perl in-built function substr() to data extraction, it has huge > impact on performance. Compared to what? > Is there any alternative for this? Perhaps unpack() or regular expressions, but I doubt either would be much faster, if at all. -- Paul Johnson - p...@pjcj.net http://www.pjcj.net -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/