-
Notifications
You must be signed in to change notification settings - Fork 577
Tie::Array SPLICE method is buggy #2738
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
Comments
From [email protected]Created by [email protected]If you use the standard splice function and the offset is $ cat tmp.pl $ tmp.pl However, if you use the inherited SPLICE method from Tie::Array, Here is an example which demonstrates the unexpected behavior $ cat foo.pl sub TIEARRAY sub FETCH # find the right offset in the file and then read in sub STORE # ensure data is the right size # ensure file is the right size # either truncate the file if it's shrinking no strict; # cat foo.dat print "\@bases=",join("|",@bases),"\n"; $ perl foo.pl after splice As you can see, this causes major havoc when the user Thanks Richard Chen Perl Info
|
From [email protected]Created by [email protected]If you use the standard splice function and the offset is $ cat tmp.pl $ tmp.pl However, if you use the inherited SPLICE method from Tie::Array, Here is an example which demonstrates the unexpected behavior $ cat foo.pl sub TIEARRAY sub FETCH # find the right offset in the file and then read in sub STORE # ensure data is the right size # ensure file is the right size # either truncate the file if it's shrinking no strict; # cat foo.dat print "\@bases=",join("|",@bases),"\n"; $ perl foo.pl after splice As you can see, this causes major havoc when the user Thanks Richard Chen Perl Info
|
Migrated from rt.perl.org#4480 (status was 'resolved')
Searchable as RT4480$
The text was updated successfully, but these errors were encountered: