<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=956083505-31072003>Thank 
You all for the excellent responses.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=956083505-31072003></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=956083505-31072003>I 
tried several of these because I felt guilty wasting all the thought and 
code.&nbsp; The&nbsp;solution that seems to fit my life best is the one from Lee 
Wilson.&nbsp; Lee, thanks a million.&nbsp; If you're ever in the Bothell area, I 
owe you a lunch.&nbsp; I appreciate everyone's efforts on this one.&nbsp; 
</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=956083505-31072003></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=956083505-31072003>Thank 
You,<BR>Chuck Orr</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=956083505-31072003><A 
href="mailto:chuck.orr@attws.com">chuck.orr@attws.com</A></SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=956083505-31072003>425 
501 8027</SPAN></FONT></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT 
  face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> Orr, Chuck (NOC) 
  [mailto:chuck.orr@attws.com] <BR><B>Sent:</B> Wednesday, July 30, 2003 4:55 
  PM<BR><B>To:</B> spug-list@mail.pm.org<BR><B>Subject:</B> SPUG: RE / Split 
  Question<BR><BR></FONT></DIV>
  <DIV><FONT face=Arial size=2><SPAN class=585064323-30072003>Hello 
  All,</SPAN></FONT></DIV>
  <DIV><FONT face=Arial size=2><SPAN 
  class=585064323-30072003></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2><SPAN class=585064323-30072003>Please help with 
  the following dilemma:<BR></SPAN></FONT></DIV>
  <DIV><FONT face=Arial size=2><SPAN 
  class=585064323-30072003>&nbsp;&nbsp;&nbsp;&nbsp; I am being given a glob of 
  data from a web page that I need to fix with perl.&nbsp; It comes in as $blob 
  looking like this:</SPAN></FONT></DIV>
  <DIV><FONT face=Arial size=2><SPAN 
  class=585064323-30072003></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2><SPAN class=585064323-30072003>425 501 sttlwa01t 
  425 712 sttlwa01t tacwa02t 425 337 tacwa02t ...</SPAN></FONT></DIV>
  <DIV><FONT face=Arial size=2><SPAN 
  class=585064323-30072003></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2><SPAN class=585064323-30072003>I need to break 
  this up so the word characters associated with the numbers stay with their 
  numbers.&nbsp; Ideally, I would have an array like this:</SPAN></FONT></DIV>
  <DIV><FONT face=Arial size=2><SPAN 
  class=585064323-30072003></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2><SPAN class=585064323-30072003>425 501 
  sttlwa01t</SPAN></FONT></DIV>
  <DIV><FONT face=Arial size=2><SPAN class=585064323-30072003>425 712 sttlwa01t 
  tacwa02t</SPAN></FONT></DIV>
  <DIV><FONT face=Arial size=2><SPAN class=585064323-30072003>425 337 
  tacwa02t</SPAN></FONT></DIV>
  <DIV><FONT face=Arial size=2><SPAN 
  class=585064323-30072003></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2><SPAN class=585064323-30072003>As you can see, I 
  am not assured of the number of words that will follow each set of 
  numbers.&nbsp; Could you please suggest a split or some other tool that will 
  turn the glob into the fix?</SPAN></FONT></DIV>
  <DIV><FONT size=+0><SPAN class=585064323-30072003>
  <P><FONT face=Arial><FONT size=2>$new_array = [ split /(?=[A-Z]\s\d)/,$scalar 
  ];<SPAN class=585064323-30072003>&nbsp; </SPAN></FONT></FONT></P>
  <P><FONT face=Arial><FONT size=2><SPAN class=585064323-30072003>Which is as 
  close as we got, does not work.&nbsp; It keeps the split characters, but in a 
  funky way that I cannot deal with.&nbsp; It also will always miss the last 
  chunk of the glob.</SPAN></FONT></FONT></P></SPAN></FONT></DIV>
  <DIV><FONT face=Arial size=2><SPAN 
  class=585064323-30072003></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2><SPAN 
  class=585064323-30072003></SPAN></FONT><FONT face=Arial size=2><SPAN 
  class=585064323-30072003>Thanks,<BR>Chuck</DIV></BLOCKQUOTE></SPAN></FONT></BODY></HTML>