63 200
Assignments Done
99,3%
Successfully Done
In July 2018

Answer to Question #16625 in Perl for Tohru

Question #16625
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.
Expert's answer
$site=;
chomp $site;

print "\n";
print "source code\n\n 1 = php\n\n-> ";
$code=;
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

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!

Comments

Assignment Expert
15.10.14, 21:36

Dear visitor, 
please use panel for submitting new questions

jasmine
15.10.14, 08:31

Prompt the user to enter a sequence of numbers (between 1 and 20) and/or letters (lower or uppercase), each number or letter is separated by a space, and the length of the sequence can vary. The user ends the sequence with a "q" or "Q", followed by a space. (Assume that the user always enters a "q" or "Q" followed by a space.)
Do NOT use regular expressions
DO use arrays
An example of user input is:
1 12 a 2 5 P Q
Test your script with the following input (6 different test cases):

1 12 a 2 5 P Q output sho

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions