60 PerlMonks - Newest Nodes New nodes appearing on PerlMonks http://perlmonks.org/index.pl?node_id=30175 http://blogs.law.harvard.edu/tech/rss PerlMonks Newest Nodes XML Generator 961 PerlMonks 2014-12-27 15:33:38 rss,clean Sat Dec 27 04:33:38 2014 30 20141227043338 Sat Dec 27 04:33:38 2014 http://perlmonks.org/ Anonymous Monk READ one line at a time wrkrbeee http://perlmonks.org/index.pl?node_id=1111458 Hello PerlMonks, Inherited a program that creates the "Out of Memory" error. Modified the code to read one line at a time rather than store the entire file in a variable (or so I thought). Program ... perlquestion Sat, 27 Dec 2014 15:27:29 +0000 http://perlmonks.org/index.pl?node_id=1111458 1111458 1108355 2014-12-27 10:27:29 wrkrbeee Re: READ one line at a time Anonymous Monk http://perlmonks.org/index.pl?node_id=1111459 Be so kind and put this thing in tags. Like this: your program here ... note Sat, 27 Dec 2014 15:31:21 +0000 http://perlmonks.org/index.pl?node_id=1111459 1111459 961 2014-12-27 10:31:21 Anonymous Monk Re^3: Question on Regular Expression sjain http://perlmonks.org/index.pl?node_id=1111457 Can you please let me know how to make use of %+ so to match in a loop even if the submatch in a pattern string fails? ... note Sat, 27 Dec 2014 14:17:07 +0000 http://perlmonks.org/index.pl?node_id=1111457 1111457 1097627 2014-12-27 09:17:07 sjain Re: Question on Regular Expression Anonymous Monk http://perlmonks.org/index.pl?node_id=1111456 This is what C programmers call 'undefined behaviour'. There is no point to try to explain why those regexes do what they do (whatever that is). <a href="http://perldoc.perl.org/perlre.html">perlre</a>: There is a sp... note Sat, 27 Dec 2014 13:19:32 +0000 http://perlmonks.org/index.pl?node_id=1111456 1111456 961 2014-12-27 08:19:32 Anonymous Monk Re^2: Question on Regular Expression sjain http://perlmonks.org/index.pl?node_id=1111453 What is the difference between them? The difference is code snippet 2 is using one more named capture . What output are they supposed to give? Code snippet 1 is gving... note Sat, 27 Dec 2014 12:45:15 +0000 http://perlmonks.org/index.pl?node_id=1111453 1111453 1097627 2014-12-27 07:45:15 sjain Re^2: Question on Regular Expression sjain http://perlmonks.org/index.pl?node_id=1111452 As you pointed out, There was a typo in code snippet 2. I have changed $pattern1 with $pattern2 in code snippet 2. But I am getting different out. Is it because I am using version 5.10 ? ... note Sat, 27 Dec 2014 12:10:33 +0000 http://perlmonks.org/index.pl?node_id=1111452 1111452 1097627 2014-12-27 07:10:33 sjain Re: Question on Regular Expression CountZero http://perlmonks.org/index.pl?node_id=1111451 Before we all spend lots of time trying to analyze your regexes, perhaps you can explain us what they are supposed to do? ... note Sat, 27 Dec 2014 10:38:30 +0000 http://perlmonks.org/index.pl?node_id=1111451 1111451 198160 2014-12-27 05:38:30 CountZero Re^5: XY Problem wrog http://perlmonks.org/index.pl?node_id=1111450 I certainly won't try to claim all XY problems have this form, but it does seem to account for a lot of them.... note Sat, 27 Dec 2014 10:31:29 +0000 http://perlmonks.org/index.pl?node_id=1111450 1111450 388437 2014-12-27 05:31:29 wrog sanga sanga http://perlmonks.org/index.pl?node_id=1111454 user Sat, 27 Dec 2014 12:48:22 +0000 http://perlmonks.org/index.pl?node_id=1111454 1111454 1111454 2014-12-27 07:48:22 sanga