<html>
<body>
I pull data from long files in that are in a fixed format, ascii
report.<br><br>
For example:<br>
<font face="Courier New, Courier">
                             
SUPPLY  
EXHAUST            
MINIMUM<br>
    
ZONE                      
FLOW     
FLOW      
FAN      FLOW<br>
    
NAME                    
(CFM )    (CFM )     
(KW)    (FRAC)<br><br>
Kitchen Area 1C Spc zn        
2750.     1400.    
0.249     1.000<br>
Kitchen Area 1C Pl
zn            
0.        0.    
0.000     0.000<br>
</font>
                                                                 
<br>
The Zone names are a max a maximum of 25 characters - spaces
allowed.   I want to split the lines into the zone name field
and the 4 number fields:  I am hoping the first pattern will leave
the last character and remove the trailing spaces up to the maximum of 25
characters (assuming the user would have at least one character in the
zone name.).<br><br>
I am hoping the following does the trick but I think the first pattern
will end up removing the last character in the zone name:<br><br>
my @zoneLine = split /[\w\s{0,25)$]/+\w{4}/, $inLine;<br><br>
At any rate, the above gives me a compile error:<br><br>
Search pattern not terminated at Test-Split-1.pl line 5.<br>
 <br>
Any help appreciated!<br><br>
<br>
<x-sigsep><p></x-sigsep>
>><br>
Christopher Jones, P.Eng.<br>
Suite 1801, 1 Yonge Street<br>
Toronto, ON M5E1W7<br>
Tel. 416-203-7465<br>
Fax. 416-946-1005<br>
email cj@enersave.ca<br>
</body>
</html>