hello guys
i set this code , and i would like to know if its possible put "quotes" on the searched word.
Thank You
#word searching program within a txt file
#!C:/perl/bin/perl.exe
start:
#Handle Area - file opening
open FILE, "c:/perl/notice.txt" or die "failed to open notice.txt $!\n"...
nice, Annihilannic.
where can i place the value=1 when the key word match with the content of .txt ?
im trying set a variable to the txt file and refering to it print "sry\n" if it doesnt match with de txt content, but doesnt work
a last question guys
how to make a condition to the file notice.txt that if the word was not found it gives a msg "sry this word was not found"
here´s the code once again
#!C:/perl/bin/perl.exe
start:
open FILE, "c:/perl/notice.txt" || die "failed to open notice.txt $!\n";
@read=<FILE>; #...
can someone help me ?
to get a specific word, from a text.txt
here is the code,
#!C:/perl/bin/perl.exe
open (my $read, "c:/perl/notice.txt" )|| die "failed to open notice.txt $!\n";
while(<$read>) {
print "$_";
}
close $read;
print "search a word\?\n";
$choose=<STDIN>; chomp $choose...
hello
i´d like to know the script that allows me to search in a file.txt a specific word or line, and report log errors by missing specific informations as words itself or datas.
Hello
utilizing this filehandle topic, i´d like to know the script that allows me to search in a file.txt a specific word or line, and report log errors by missing specific informations as words itself or datas.
hi all
i have one question about call an external programs with perl
how can i call a program (ex: calculator,messenger,word...) by writing a perl code??
is that possible?
some *** is being made by me, by fact, but
i started for about a few days
i installed the strawberry perl win32 for XP, and then there´s a CPAN Client on it, followed the book, it seems to give the feeling that the perl code was on CPAN(even i noticed that CPAN uses to...
Kevin
the problem is that i cant send a code because none of perl code is accepted in my perl CPAN Client
im following a book "PERL - Complete Guide" from O´Reilly publisher by ellen siever, stephen spainhour & Nathan Patwardhanand, and those codes shown in is not applying im my case,
its...
hello
im begginer in perl
i have strawberry perl installed im my machine, and im having problems with setting perl commands on CPAN Client, no perl commands is accepted
one example is:
!/usr/bin/perl
error:
"Bareword found where operator expected at <eval 20> line 1
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.