Perl Counter Questions and Answers
Officer, The - A Worrisome Review of U.S. Anti-Terrorism Efforts
March 1, 2007 -- Defense Education Forum
In mid-January, ROA and its Defense Education Forum hosted the first in a series of programs on terrorism. Raphael Perl,...
more
Sunday Star - Times; Wellington, New Zealand - Dim sum
March 19, 2006 -- FIBONACCI 2/5 Where: 43 High St, City. Ph 359-9115. When: Weekdays, 7am to 3pm; Saturday, 8am to 3pm. Closed Sunday. What: Breakfast (all day) and...
more
Daily Post; Liverpool (UK) - Stuff: Pretty compact
February 24, 2005 -- CHANEL'S new compacts are so pretty you will be desperate to show them off in the ladies'. However once you open it chances are you will be scared...
more
M2 Presswire - Using Perl to create and manipulate graphics for the web; O'Reilly releases "Perl Graphics Programming".
January 16, 2003 -- M2 PRESSWIRE-16 January 2003-O'REILLY: Using Perl to create and manipulate graphics for the web; O'Reilly releases "Perl Graphics...
more
Economist (US), The - Cold War II: proliferation. (nuclear arms) (American Survey)
December 11, 1993 -- US defense secretary Les Aspin has proposed the Defense Counter-proliferation Initiative (DCI) as the US response to growing threats of nuclear...
more
Chain Drug Review - Roberts expands offerings
October 22, 1990 -- Roberts Expands Offerings Roberts Expands Offerings
EATONTOWN, N.J. - Roberts Pharmaceutical Corp. of Eatontown, N.J., has acquired all rights to...
more
Perl Counter Questions and Answers
Resolved Question: How do make web site?
Hiiii
I start building a web site. I realize that i need to learn a CGI if i want to make more interactive my web site such as forms,counter etc. As, I started I found that I have install Perl. I am really tired now could please explain me. As before going to launch my web site I have to do some test in regard do i have to install Perl or something else.
I have xp.home edition,service pack 3 . If yes so could tell me step by step free solution.
hey thanks first
bt which software shd i download?
moreResolved Question: How do I search for two words in a sentence using perl?
I have been writing a code that will take in a specified file that I was given, some sort of audit log that has several types of things in it. I need to make a program that reads all of the different "Types" it has in it and tells the user how much of each type it has. That part I have down, the second part is I need to find how many of the type "type=USER_LOGIN" have the word "auid=500" in the same line with it. I have tried multiple ways of doing this and will post my most logical result so far, hopefully you can tell me what I am doing wrong because it doesnt find them, but I know there are at least six entries that have it.
#!/usr/bin/perl -w
use strict;
my(%wordCount);
my$userCount = 0;
my @counter;
my $String = "";
while(<STDIN>) {
chomp;
foreach(split /[\s\t]+/) {
if($_ =~ /^type/){
$wordCount{$_}++;
}
if(($_ =~ /^(type=USER_LOGIN/)&&($_ =~ /auid=500/))
{
$userCount += $userCount+1;
}
}
}
print "\n";
foreach(keys %wordCount) {
print "$_ Appeared: $wordCount{$_}\n";
}
print "USER_LOGIN WITH AUID=500 Appeared: $userCount\n";
Sorry about the format, Yahoo Did not want to cooperate...
moreVoting Question: Displaying Perl output to a browser: I am developing a site with perl programming. I put a counter With the?
use of perl coding. But, i didn't know how to print the processed output in perl to a html page. So, i created a <iframe> tag and displaying the perl processed output as a separate page.Help me to display this output as displayed printing the output of java script. THANKS IN ADVANCE...
moreResolved Question: Need help with PERL script - HELP please?
I need help with the following script. Im stuck. I need to replace anywhere it says SYNTAX or INDEX with the appropriate code but Im not sure what is right. Any suggestions would be great. thanks
#!/usr/bin/perl -w
# Script name: intlist.pl
# Functionality: Script reads two command line arguments.
# The two arguments must be numeric and the first argument must be
# a value less than the second argument. If the arguments are valid,
# print the numbers between and including the numbers.
# Case #1: ./intlist.pl 3 6
######################################...
# Checks and enforces correct number of arguments
unless (scalar(@ARGV)==2){
print "error: incorrect number of arguments",
"\n",
"usage: intlist a b (where a < b)",
"\n";
exit 1;
}
# Checks that first argument is smaller than second
if ($ARGV[0] SYNTAX $ARGV[INDEX]){
print "error: first argument must be less than second argument",
"\n",
"usage: intlist a b (where a < b)",
"\n";
exit 1;
}
# prints arguments
else {
$COUNTER=$ARGV[INDEX]; # Sets counter to low integer
# Prints integers until high integer is reached
while($COUNTER<=$ARGV[INDEX]){
print $VARIABLE;
if ($COUNTER<$ARGV[INDEX]){
print ", ";
}
else {
print "\n";
}
$COUNTER SYNTAX 1
}
}
exit 0;
moreResolved Question: perl script - Needing help with code?
I need help with the following script. Im stuck. I need to replace anywhere it says SYNTAX or INDEX with the appropriate code but Im not sure what is right. Any suggestions would be great. thanks
#!/usr/bin/perl -w
########################################
# Script name: linenum.pl
# Functionality: This script requires that the command line argument # be a file. The file will be opened and each statement will be output to
# stdout in the following format: # Input format: Line number : Program # statement
# e.g. 22 : if ( $readme -eq $base )
# Case #1: ./linenumber printnum.sh
#######################################
# Handles the enforcement of correct number of arguments
unless (SYNTAX){
print "error: incorrect number of arguments",
"\n",
"usage: linenum [filename]",
"\n";
exit 1;
}
# Opens file from argument
open(MY_FILE, "$ARGV[INDEX]") or die
"error: argument must be a file\n",
"usage: linenum [filename]\n$!\n";
# Checks if file is a directory
if (-SYNTAX "$ARGV[INDEX]"){
print "error: argument must be a file",
"\n",
"usage: linenum [filename]\n";
exit 1;
}
$COUNTER=1; # Used for printing line numbers
# Loop and writes lines from file
SYNTAX ($LINE=<MY_FILE>){
# Adds leading zeros for numbers 1 digit long
if ($COUNTER<10){
print "000";
}
# Adds leading zeros for numbers 2 digits long
if (($COUNTER>9) && ($COUNTER<100)){
print "00";
}
# Adds leading zeros for numbers 3 digits long
if (($COUNTER>99) && ($COUNTER<1000)){
print "0";
}
# Prints line number and line
print "$COUNTER: $LINE";
$COUNTER+=1;
}
exit 0;
moreResolved Question: I have a perl programming question?
I have to open a file and count the number of certain elements in the file. I created an array and I know I need a counter but don't know how to do it.
moreResolved Question: question about Perl and CGI
Hello,
I am making a counter for a website and I need to make a data folder with a count file inside the data folder. I am unsure what extension to add after count. by default it is .txt
I would really appreciate any help.
inside my cgi file reads
my $count_file = "/cgi/data/count";
but when i upload my count file it has a .txt
moreResolved Question: programming question......?
Hey what i don't understand is php? what can you do with it? i know its surver sided, ok for all websites you need html? or what can you have php with no html? can you design the look and all with php? i don't think so, aren't basic html websites just frozen and nothing changes until the owner makes something and uploads it to the host or something right? but is php what users can change things in, and is not frozen, like on forums everyone can create an account and say something and then it changes for everyone, so it's not frozen, but can you have a moving clock or something on a non php site? not counting perl, i mean on just a html website, but what about counters, can you put them on html? how does this work, what do you use php for? what about wikepidea, is that on some server sided like php? or what about does it upload as soon as you write something? damm i don't understand so please help me, and explain to me, couse im new, but i know html fully and css, i just learned them
moreResolved Question: Just started as a webmaster for a company. I need to find statistics on page hits for the company's web pages.
Supposedly the previous webmaster provided them with page hit statistics. I cannot contact him, and no one else knows. Site runs on Apache running Perl. I looked for a file named "counter" in the cgi-bin folder but found nothing. Any ideas?
moreResolved Question: just started to go through perl tutorial, and can't figure out the solution for this problem, help! Tnks?
A word frequency counter. How often does each word show up in an array of words? Print out a report. (Hint: Use a hash to count of the number of appearances of each word.)
hi tru_story, thanks for the answer. I thought about your solution. However, what I'm trying to figure out is the harsh solution which hined by the tutorial .( See the link, at the "play around" section. )http://www.perl.com/pub/a/2000/10/begperl1.html
moreResolved Question: Perl implementation about age calculation from birthdate?
Hi all,
I'm trying to implement a Perl language structure.
My small program will do the followings;
Take the birth date of the user as input.
(Month's will be input as strings.)
Take the current time from the operating system.
Then calculate and display the age of the user as;
x years, x moonths and x days.
I also want to add a day/month counter,
so that the program will calculate and display the age of the user as;
x days, x months
So, I plan the program to work as follows;
Enter your birth date: 21 November 1975
Enter the current date: 9 January 2007 //if i can't implement a get_system_time function
Your age is: 31 year(s) 1 month(s) 19 day(s)
You've been living for 11364 days or 378 months.
I'd be glad to hear some help about this small implementation.
Thanks all..
The date can be another format.
So it can be like this:
Enter your birth date: November 21st 1975
This is not the issue here!..
more