Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I have a file with these values,
How can i save the first 3 values i.e. (a,b,c) to 3 different variables? i.e.Name a b c d e f g h
Need to repeat till the end of the file, so the next iteration these variable should have values,$i = a $j = b $k = c
$i = d $j = e $ = f
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Save first n values from a file
by LanX (Saint) on Jan 10, 2014 at 10:40 UTC | |
Re: Save first n values from a file
by Random_Walk (Prior) on Jan 10, 2014 at 10:33 UTC | |
Re: Save first n values from a file
by johngg (Canon) on Jan 10, 2014 at 12:09 UTC | |
Re: Save first n values from a file
by Lennotoecom (Pilgrim) on Jan 10, 2014 at 12:16 UTC | |
by LanX (Saint) on Jan 10, 2014 at 12:28 UTC | |
by Lennotoecom (Pilgrim) on Jan 10, 2014 at 12:38 UTC | |
Re: Save first n values from a file
by kcott (Archbishop) on Jan 12, 2014 at 14:53 UTC | |
Re: Save first n values from a file
by robby_dobby (Hermit) on Jan 13, 2014 at 05:57 UTC | |
Re: Save first n values from a file
by Anonymous Monk on Jan 10, 2014 at 20:57 UTC | |
Re: Save first n values from a file
by pvaldes (Chaplain) on Jan 12, 2014 at 15:19 UTC | |
Re: Save first n values from a file
by Anonymous Monk on Jan 10, 2014 at 20:58 UTC |
Back to
Seekers of Perl Wisdom