New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use of uninitialized value in split #3252
Comments
From manfred.umbach@DaimlerChrysler.comThe following script splits a string into paragraphs at empty lines. The behavior depends critically on the contents of the string and the The problem occurs on AIX 4.3.3, HP-UX 11, IRIX 6.5 and Windows NT. #!/usr/local/bin/perl -w use strict; my $string = " paragraph 2 paragraph 3 paragraph 4 paragraph 5 paragraph 6 paragraph 7 paragraph 8 paragraph 9 paragraph 10 my @paras = split( /^\s*\n/m , $string ); print "number of paragraphs: ", @paras-1, "\n\n", Perl Info
|
From [Unknown Contact. See original ticket]
I reproduced this bug with perl5.6.0 on solaris. It is fixed in perl5.6.1 and perl5.7.0 I think the patch is 6172 (aka 7330 in perl5.6.1) This bug should closed Robin |
Migrated from rt.perl.org#5431 (status was 'resolved')
Searchable as RT5431$
The text was updated successfully, but these errors were encountered: