Stefan Kredler wrote:
> 
> is there a better way of building a hash from a file than this?
> 
> ---8<---
>   while (<FILE>){
>      ($mt,$te) = split /;/,<FILE>;
                            ^^^^^^^
You are reading every _second_ line into your variables.

>     $tt{$mt} = $te;
> }
> ----8<-----
> 
> I tried:
> ($mt,$te{$mt}) = split /;/,<FILE>;
> 
> even though I expected it to fail; the use of @_ seems to fail too.
> 
> Any hint is appreciated


my %tt = split /;|\n/, <FILE>;


John
-- 
use Perl;
program
fulfillment

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

Reply via email to