Browse files

Make subbuf act more like Str.subbuf

  • Loading branch information...
dagurval committed Sep 3, 2013
1 parent 554918c commit e05910e1155e661e934a1f4627020ec38188f8b8
Showing with 7 additions and 1 deletion.
  1. +7 −1 S32-setting-library/Containers.pod
@@ -18,7 +18,7 @@ DRAFT: Synopsis 32: Setting Library - Containers.pod
Created: 19 Feb 2009 extracted from S29-functions.pod
- Last Modified: 3 Aug 2013
+ Last Modified: 3 Sep 2013
Version: 41
If you read the HTML version, it is generated from the Pod in the specs
@@ -1091,6 +1091,12 @@ encoding instead.
Returns a part of the original buffer, starting from index C<$from> and taking
C<$elems> elements (or to the end of the buffer, if not provided).
+The method fails with C<X::OutOfRange> if either C<$from> or C<$elems> are negative. The method also fails if C<$from> is larger than the amount of elemens in the buffer.
+C<$from>may be specified relative to the end of the string using a WhateverCode:
+, 0xFF).subbuf(*-1, 1)

0 comments on commit e05910e

Please sign in to comment.