blaui has asked for the wisdom of the Perl Monks concerning the following question:
Hello!
I put data to a hash, but then I want to get it out as kind of array/list;
wallshearstress.txt wallshearstress_l.txt wallshearstress_u.txt wallheatflux.txt wallheatflux_l.txt wallheatflux_u.txt
I put data to a hash, but then I want to get it out as kind of array/list;
The first print gives, what I expected:push @{$csvheader{$pre}}, $tmp; print "@{$csvheader{'x_'}}\n"; $tmp = "paste -d';' ". @{$csvheader{'x_'}} ." > all.x.txt"; print "$tmp\n"; system($tmp);
wallshearstress.txt wallshearstress_l.txt wallshearstress_u.txt wallheatflux.txt wallheatflux_l.txt wallheatflux_u.txt
But the second print gives:
paste -d';' 6 > all.x.txt
How I have to modify, that the second print gives:
paste -d';' wallshearstress.txt wallshearstress_l.txt wallshearstress_u.txt wallheatflux.txt wallheatflux_l.txt wallheatflux_u.txt > all.x.txt
Regards, Blaui
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: how to get out data of a hash?
by choroba (Cardinal) on Apr 17, 2018 at 11:26 UTC | |
by blaui (Initiate) on Apr 18, 2018 at 07:05 UTC | |
by Anonymous Monk on Apr 17, 2018 at 13:02 UTC | |
by marto (Cardinal) on Apr 17, 2018 at 13:10 UTC | |
by Your Mother (Archbishop) on Apr 17, 2018 at 17:46 UTC | |
|
Back to
Seekers of Perl Wisdom