Search results

  1. T

    how do you get perl to work on windows vista?

    I've downloaded and installed strawberry perl on to my new vista PC. to make sure it was working OK I made the: #!usr/bin/perl print ("Hello, world"\n); program. but every time I run it in my command prompt i just get 'program.pl' is not recognized as an internal or external command, operable...
  2. T

    Using perl, haw can I get the HTML off a web page I've downloaded?

    I wanna save a web page I've got in $contents but I don't want all the HTML code and stuff, just the words eg. I want '<b>Can you help please?</b>' to be saved to a file as 'Can you help please?'. I know how to save, I just would like to know how to 'strip' the code off $contents? Thanks for...
  3. T

    How do you search a file in Perl?

    I'm trying to get Perl to search a file for a string held in $data and if its not found print it into the file. The code I've got at the moment is: open FILE, 'list.txt'; while ( my $data = <DATA> ) { $data =~ s/(.)(+)/$1.length($1.$2)/ge; print $data; } close FILE; but it prints...
  4. T

    How do you search a file in Perl?

    I'm trying to get Perl to search a file for a string held in $data and if its not found print it into the file. The code I've got at the moment is: open FILE, 'list.txt'; while ( my $data = <DATA> ) { $data =~ s/(.)(+)/$1.length($1.$2)/ge; print $data; } close FILE; but it prints...
  5. T

    How can I get Perl to make a database table in a .txt file so I can read and edit it?

    I wanna get Perl to make a database in the form of a table and save it to a .txt file. I want the columns to be called "id no.", "name" and "address". I also need it to check that is not making an entry for an id no. that is already it the table, but edit the name/address. Thanks for your help.
  6. T

    How can I get Perl to edit a database in a .txt file?

    I'm trying to get Perl to make a database that looks like.... Mr Smith 1 Some Road Some Town County Post Code Mr A Nother 5 The Street The Town The County Post Code I have the names in $names and the address in $address, I can also get them printed in to data.txt how I want it to look, is...
  7. T

    How do you search a file in Perl?

    I'm trying to get Perl to search a file for a string held in $data and if its not found print it into the file. The code I've got at the moment is: open FILE, 'list.txt'; while ( my $data = <DATA> ) { $data =~ s/(.)(+)/$1.length($1.$2)/ge; print $data; } close FILE; but it prints...
  8. T

    How can I get Perl to make a database table in a .txt file so I can read and edit it?

    I wanna get Perl to make a database in the form of a table and save it to a .txt file. I want the columns to be called "id no.", "name" and "address". I also need it to check that is not making an entry for an id no. that is already it the table, but edit the name/address. Thanks for your help.
  9. T

    How can I get Perl to edit a database in a .txt file?

    I'm trying to get Perl to make a database that looks like.... Mr Smith 1 Some Road Some Town County Post Code Mr A Nother 5 The Street The Town The County Post Code I have the names in $names and the address in $address, I can also get them printed in to data.txt how I want it to look, is...
  10. T

    How can I get Perl to open/make a .txt file using $input for the file name?

    I want to get perl to make the file using $input as the name so if 'name' was saved as $input the file would be called 'name.txt' I've got it like this at the mo: open FILE, ">'$input'.txt" or die $!; but its not working :( anyone got any ideas?
  11. T

    How do I delete the 1st line on a file using perl?

    Hi, I want to delete the first line of a file using perl. In my code, I have the file open and line saved as $line. But how can I delete $line from the file?
  12. T

    Using perl, haw can I get the HTML off a web page I've downloaded?

    I wanna save a web page I've got in $contents but I don't want all the HTML code and stuff, just the words eg. I want '<b>Can you help please?</b>' to be saved to a file as 'Can you help please?'. I know how to save, I just would like to know how to 'strip' the code off $contents? Thanks for...
  13. T

    how do you get perl to work on windows vista?

    I've downloaded and installed strawberry perl on to my new vista PC. to make sure it was working OK I made the: #!usr/bin/perl print ("Hello, world"\n); program. but every time I run it in my command prompt i just get 'program.pl' is not recognized as an internal or external command, operable...
  14. T

    How can I get Perl to enter $info in to a form and 'click' submit?

    I'm trying to make a program to fill out forms on web sites for me. How can I get Perl to fill our forms then show the resulting page in my web browser using HTML? I know how to connect to a web page, than I'm stuck :(
  15. T

    How can I get my HTML form to pass on information inputted by a user to a Perl program?

    How can I get my HTML form to pass on information inputted by a user to a Perl program? I want Perl to over write/create a file that users have named for upload in the form and check the file type. I am using Windows if it makes any difference??
Back
Top