Getting a bit stuck. Would appreciate any help?
Thanks
I have a list of names.
Each name corresponds to a profile on a txt document.
Each txt document profile contains a section called address
I am only interested in those names that are in Texas as well as those specifically in Austin...
Hi
I feel bad as everyone is helping but... I'll just rephrase original query. How do I remove lines within a text file containing lines starting with the word "hobbies" and those hobby lines containing football into another text file using LWP::Simple module
Thanks again
use LWP::Simple;
open (HELLO, ">>thanks.txt");
foreach $person (@group) {
my $url = "http://www.domain.com/$person.txt";
my $content = get $url;
print HELLO $content;
Sorry, I was just typing fast.
Original problem still exists.
use LWP::Simple;
open (HELLO, ">>thanks.txt");
foreach $person (@group) {
my $url = "http:domain/$person.txt";
my $content = get $url;
print HELLO $content;
@group contains list of names.
Hi there. The file from the website contains lots of details but I am just interested in the line that...
What is the last line doing?
I understand the rest?
Where did $families come from?
while(<SARACEN>) {
chomp;
my ($family, $people) = split (/=/, $_);
my @members = (split /,\s*/, $people);
foreach my $member (@members) {
push @{$people{$member}}, $family...
Is there a way to calculate the total number of terms altogether within arrays of a hash. I know I have to divide the following scalar but I can't figure out how to group the total number of "family members" in all the "families" of the hash.
print "$member can be found " ...
Basically my data is subject to change but will follow a format as follows where I will have a unique "Family Name" followed by "--" followed by various "family members". The contents of the data are unknown to me apart from the format: Data is a text file as follows:
FLINTSTONES=BARNEY...
A = 1
A = 2
A = 3
B = 5
B = 1
B = 7
e.t.c
C = .....
Is there a way to convert this format to:
A = 1,2,3
B = 5,1,7
C = ...
.
.
.
Z = ...
I am thinking
while in data file
split each line to letters and numbers.
if next letter matches previous letter push into an array
otherwise create a...
#!/usr/bin/perl
@foo= ("apple","orange","pear","pear","mango","apple");
for (@foo) {
$bar{$_}++;
}
while ( ($k,$v) = each %bar ) {
if ($v =~ 1){
print "$k appears $v time\n";
}
elsif ($v !=~ 1){
print "$k appears $v times\n";
}
}
The above code works nicely with a one column set of...
The 001 element (3 figure configuration is important. Is this possible without having to type out all the numbers?
I have tried @nums = (001 .. 500) with no success.
LOL. Sorry, my mistake. It works!! Woo Hoo.
My next challenge is creating a CGI form.
THANK YOU EVERY1 and especially Raklet and PaulTEG!
Stars All Around!
Thanks again Raklet. After printing out your and Paul' codes it definitely makes alot of sense.
$pr = 1;
$pr = 0;
I still do not understand why these numbers are used. Is this a special case where 1 means something like true and 0 means something like false?
But, you'll be pleased I have made...
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.