Okay. Sorry I wasn't clearer. Want I need to do is open any file and eliminate all unneccessary characters. Then I need to split the data into a hash.
data sample:
Ge1:1 In the beginning God created the heaven and the earth.
Ge1:2 And the earth was without form, and void; and darkness was...
I am trying to code out some regex's and am getting lost.
I am trying to open a file and then count instances of words. I then want to store them in a hash and display them in the following manner
ie. the word 'word' appears in the file 11 times.
Word => words Value => 11
I...
For the life of me I cannot figure out how to change my input from decimal to hexadecimal. Can anyone (although, it will probably be everyone) help me with the code for this?
My exisiting code is below:
#!/usr/bin/perl
use strict;
use warnings;
my @line;
my $x;
my $sum=0;
my $num;
print...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.