hiii please clear this i have a file that file data are like "[head =chapter]" this for each line how can i store the head =chapter in perl as a hash variable data using perl language
Perl scripting. Specifying file path in a Open statement. ?
Hi,
I’m writing my first perl program to read from a file. In the below $infile, I also want to specify the path name of the file. If I provide C:\.., it is not accepting . please suggest me with options.
# ——————
print "Testing\n";
$infile=’array.txt’;
open(F1,$infile) ||die "Error Opening File!! File Name :- $infile\n";
In perl how to parse a text file?
I have a text file which contains some data.It has the data in column wise form..Say the columns are age,name,and number.And below are the values.How can I parse the file in perl so that it will output only the the desired values.e.g it will only output the value for the age field?Can somebody give a small example?Thanks in advance..
The file is somewhat like this
Name Age Number
—————————————
xyz 22 123456
abc 21 234567
With Perl, how can I write to a file unti it is a certain size?
I am using String::Random to generate the random text but I am having a hard time figuring out a loop to check the size of the file and keep writing to the file until the file size is X.
How to read a .doc file in perl on linux machines. On windows we do that ny using OLEs. Help me out on linux.?
How to read a .doc file in perl on linux machines.
On windows we do that ny using OLEs.
Help me out on linux.
Thanx a lot,
Anil. R












