64 778
Assignments Done
99,3%
Successfully Done
In September 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.
$site=; chomp$site;

print &quot;\n&quot;;
print &quot;source code\n\n 1 = php\n\n-&gt; &quot;;
$code=; chomp($code);

if ( $site !~ /^http:/ ) {$site = &#039;http://&#039; . $site; } if ($site !~ /\/$/ ) {$site = $site . &#039;/&#039;; } print &quot;\n&quot;; print &quot;-&gt; Target:$site\n&quot;;
print &quot;-&gt; Site source code: \$code\n&quot;;
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!

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