tobox has asked for the wisdom of the Perl Monks concerning the following question:
-----------------------------end of code-------------------- the new features should ofcourse be added, and I think a redesign would be needed - it would be better to make some subroutines to do the actual work and then just call them in the program, but I am not making a change to this before I have some idea about what I should do about the html and css... This I think would be a nice tool for webmasters. Greetings Tobox PS - please just ignore my html tags, they really wont go... That is ofcourse on preview but I am not expecting this to change when I post.... Well they atleast are not in the way of running the program#!/usr/bin/env perl -w#<br/> print "Press w to write.\n Press q to quit\n";#<br/> while (my $userinp = <STDIN>) {#<br/> chomp $userinp;#<br/> open(FILE, '>>', 'myfile.txt');#<br/> while ($userinp ne "q") {#<br/> my $usi = <STDIN>;#<br/> chomp $usi;#<br/> print FILE $usi;#<br/> print "Success - if this statecomes it should mean succes.\n";#<br/> if ($usi eq "q") {#<br/> close FILE;#<br/> die("You have decided to kill this program\n");#<br/> }#<br/> }#<br/> }#<br/>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: unsure of howto add some advanced features
by GrandFather (Saint) on Feb 15, 2007 at 22:30 UTC |