Questions: 16

Answers by our Experts: 16

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

How do you write a script in Perl showing the functions of a Pez Dispenser? The script is suppposed to show how you load colors (of Pez Candy) from a text file and then dispense the colors just as you would the candy in a Pez Dispenser.
$site=<STDIN>;
chomp $site;

print "\n";
print "source code\n\n 1 = php\n\n-> ";
$code=<STDIN>;
chomp($code);

if ( $site !~ /^http:/ ) {
$site = 'http://' . $site;
}
if ( $site !~ /\/$/ ) {
$site = $site . '/';
}
print "\n";

print "-> Target: $site\n";
print "-> Site source code: $code\n";
how i make this script get the target automatic from file.txt
How to create a perl program that finds the distance between two points in an array?
I retrived some data from db which is of length say 3(value=123) so in this case i need to prefix it with 0 (after value = 0123) and if it is only 12 we should prefix it with 00 that is (after value =0012) and same for one. I need the most efficient code!!

Note: no switch case and no indivisual looping allowed!!
Hi Techies,

i need some help.... I have to get GMT time without using any modules....
Any ideas???????
Page one – Display current donation file (Perl: open text file read and display contents, set the cookie using Perl)

The first should indicate currently who has donated and how much they have donated. The donator is able leave comments for others to read, and allow the collection of additional sum from Her Majesty’s Collector of Taxes as a Tax bonus (Gift Aid).

The page should also indicate the current total. The totals should be placed in a cookie. You will need to create a text file to read and write this information from and to, to be called the donation file.

When the user clicks on the “Sponsor me Now” button/image the user should be asked for the details of how much they wish to donate, the donator can choose the name to be displayed. The name displayed can be “anonymous” , but this cannot be their official name for gift aid (tax reasons).

How do I do this?
LATEST TUTORIALS
APPROVED BY CLIENTS