Loading ...
Sorry, an error occurred while loading the content.

Re: [PBML] RegExpr

Expand Messages
  • Jeff Eggen
    ... I wouldn t use one at all. open FILE,
    Message 1 of 1 , Sep 2, 2003
    View Source
    • 0 Attachment
      >>> david_p_li@... 09/02/03 12:59pm >>>
      >HI,

      >I have a file like

      >1
      >2
      >3
      >4
      >567

      >How to use regular expression change to
      >1 2 3 4 567

      I wouldn't use one at all.

      open FILE, "< file";
      chomp (my @array = <FILE>);
      print join " ", @array;

      Hope this helps,

      Jeff Eggen
      IT Programmer Analyst
      Saskatchewan Government Insurance
      Ph (306) 751-1795
      email jeggen@...
    Your message has been successfully submitted and would be delivered to recipients shortly.