If you have fixed width values, separated by spaces and with no spaces 
in the values, you could use the super simple:

@list_of_values = split ' ', $fixed_width_line;

On Wednesday, September 4, 2002, at 11:00  AM, zanardi2k2 wrote:

> I started to use perl a couple of months ago in my spare time, so i am
> sorry if my question is about a very simple thing.
>
> I extract data from an AS/400 table, and i am not able to get a decent
> CSV format.  So i have to choose a fixed-width format. Now i have to 
> get
> all values. Is there something better than:
>
> $var1=substr($_, 0, 10)
> $var2=substr($_, 11, 16)
> $var3=...
>
> to do this?
> Thank you in advance.
>
> -- 
> Zanardi2k2
>
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to