Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Reaped: Help I need to hand this in on monday.

by NodeReaper (Curate)
on Jan 12, 2001 at 18:41 UTC ( [id://51368]=perlquestion: print w/replies, xml ) Need Help??

NodeReaper has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.
  • Comment on Reaped: Help I need to hand this in on monday.

Replies are listed 'Best First'.
Re: Help I need to hand this in on monday.
by KM (Priest) on Jan 12, 2001 at 18:43 UTC
    You would fail if you handed in someone elses work. It is called cheating.. let alone being a Bad Thing to do. Go RTFM.. you may learn something.

    Cheers,
    KM

      Agreed and shame on him/her for asking for a solution however (s)he is here to learn an as there is no deception I think we should try to help producing a solution would not help. I hope my reply later will assist this individual more than providing a solution would have.
      --

      Zigster
      Hey Stu -

      Even better than answering your question with some code, I will let you into a very well-kept secret. There is a ftp site out there that has *downloadable* copies of pretty much any technie textbook ever written - including exercises and THEIR ANSWERS - all in HTML format.

      Although this site is supposed to be a secret, and is almost definitely illegal, their is a LOT of traffic so it is very, very hard to get a connection.

      If try hard though, you will succeed and this wealth of knowledge will be open to you. Now. Here's the tricky bit - open up a command prompt, and ftp to the ip address 127.0.0.1 ( :>ftp 127.0.0.1)- As I said it is majorly busy, and you will have your connection refused a lot. What I would suggest is to try very late at night or very early in the morning, and set your ftp timeout to a very high level.

      Good luck!

      Cheers,
      ML
      if ($mr_leisure) { bow; }
      this is still not finished
Re: Help I need to hand this in on monday.
by turnstep (Parson) on Jan 12, 2001 at 18:50 UTC

    This is almost too easy to vote down. Suspiciously so. Homework due on Monday, but the poster created the account on a Friday at 1 PM their local time. All the keywords are there: "homework", "email me", "Write a program...". And for a new user they managed to post correctly and even use the code tags. I smell a rat....

      Hm. Does smell a bit trollish, doesn't it?

      Perhaps DiscoStu is seeing how long it'll take to "beat" bravismore's experience score, which is reportedly the lowest on the site.

      Only slightly sarcastic...
Re: Help I need to hand this in on monday.
by zigster (Hermit) on Jan 12, 2001 at 19:46 UTC
    OK I am not going to answer this for you but since you have honestly said that it is homework I will try and shove you in the right direction.
    First dont panic the solution is not hard...
    printing to screen :
    print "Message\n"
    This will print a message to the screen, the \n is the newline char and is required to ensure that it is displayed as you would expect.
    reading in ip you have lots of alternatives check out <>
    $Variable = <>
    will read a line from stdin and place it in the variable $Variable it will have the newline char at the end so use chomp to remove it (look it up). For extra credit you could use a regexp and die to validate the input, look it up. Stick those two bits of info together and you have the first bit of your program. To produce the result look at for loops look at the node for loops for info about these, in short they will loop over a block of code a specific *say 10* times. The for loop, combined with a print will allow you to display the results. Ooh I spose I should mention that you can print variables thus:
    print "The value in variable = $Variable\n"
    I hope this helps, but not too much. All in all about 1/2 a dozen lines of code. This is not the optimal solution but hay ho if you wanted optimal you should have listened in those lectures.
    --

    Zigster
Re: Help I need to hand this in on monday.
by fundflow (Chaplain) on Jan 12, 2001 at 19:51 UTC
    If you are looking for information about Disco Stu, check this and this

    "What an age we live in" (H.J.S)

    :)

      Yes, but it seemed to me here that DiscoStu was attempting to advertise, and we all know he doesn't =)

      In this house, we obey the laws of thermodynamics!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://51368]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-25 20:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found