or <A HREF="../../../lib/Pod/perlfunc.html#item_undef"><CODE>undef</CODE></A>.</P>
<P><A HREF="#item_first"><CODE>first</CODE></A>, <A HREF="#item_last"><CODE>last</CODE></A>, and <A HREF="#item_start"><CODE>start</CODE></A> set the iterator;
<A HREF="#item_next"><CODE>next</CODE></A>, and <A HREF="#item_prev"><CODE>prev</CODE></A> move it;
and <A HREF="#item_current"><CODE>current</CODE></A> returns it.
Calls to these methods may be freely intermixed.</P>
<P>Using <A HREF="#item_next"><CODE>next</CODE></A> and <A HREF="#item_prev"><CODE>prev</CODE></A>,
a single loop can move both forwards and backwards through a set.
Using <A HREF="#item_start"><CODE>start</CODE></A>, a loop can iterate over portions of an infinite set.</P>
<A HREF="#item_%24Set%3A%3AIntSpan%3A%3AEmpty_String"><CODE>$Set::IntSpan::Empty_String</CODE></A> contains the string that is returned when
<CODE>run_list</CODE> is called on the empty set.
<CODE>$Empty_String</CODE> is initially '-';
alternatively, it may be set to ''.
Other values should be avoided,
to ensure that <CODE>run_list</CODE> always returns a valid run list.
<P><CODE>run_list</CODE> accesses <CODE>$Empty_String</CODE> through a reference
stored in <EM>$set</EM>->{<CODE>empty_string</CODE>}.
Subclasses that wish to override the value of <CODE>$Empty_String</CODE> can
reassign this reference.</P>
<P></P></DL>
<P>
<HR>
<H1><A NAME="diagnostics">DIAGNOSTICS</A></H1>
<P>Any method (except <CODE>valid</CODE>) will <A HREF="../../../lib/Pod/perlfunc.html#item_die"><CODE>die</CODE></A> if it is passed an invalid run list.</P>
<DL>
<DT><STRONG><A NAME="item_Set%3A%3AIntSpan%3A%3A_copy_run_list%3A_Bad_syntax"><CODE>Set::IntSpan::_copy_run_list: Bad syntax:</CODE> <EM>$runList</EM></A></STRONG><BR>
<DD>
(F) <EM>$run_list</EM> has bad syntax
<P></P>
<DT><STRONG><A NAME="item_Set%3A%3AIntSpan%3A%3A_copy_run_list%3A_Bad_order%"><CODE>Set::IntSpan::_copy_run_list: Bad order:</CODE> <EM>$runList</EM></A></STRONG><BR>
<DD>
(F) <EM>$run_list</EM> has overlapping runs or runs that are out of order.