Re: How to can develop a program
On Mon, 2022-08-01 at 14:50 -0600, William Torrez Corea wrote: > On Mon, Aug 1, 2022 at 8:16 AM Christian Walde > > wrote: > > > On Sat, 23 Jul 2022 21:03:18 +0200, William Torrez Corea < > > willitc9...@gmail.com> wrote: > > > > My goal: I want to create > > > > > > Being that you barely know anything about Perl, you should start > > with > > learning how Perl works by reading Modern Perl and Ovid's Beginning > > Perl. > > > > Right now you're doing the moral equivalent of asking how to draw > > Mona > > Lisa's eye when you don't even know which end of a paint brush > > paints. > > > > -- > > With regards, > > Christian Walde > > > > Do you have some roadmap that I can follow?. I receive the basics in > my > class of computation (control structure, data structure, algorithms, > syntax, tools). I certainly have experience with C but never I make a > long > program in Perl. I'm not sure what you're asking. Maybe that's because you don't really know what you need to ask. If you want to learn how to program in perl, it doesn't matter how long the program is except that it is probably easier to start with short programs. You can probably learn it the same way you learned programming in C. If you are asking how to make programs in perl long, I would say make them the same way as you make short programs and don't make programs any longer than they need to be. And then, it depends on what you're programming, because it can make sense to use object oriented programming and/or modules to efficiently create programs which appear much shorter than they actually are. That can have the benefit of re- using the code and/or to put code into separate files so that the whole thing becomes more managable. In a way, it's like using #include in C. Programs, over time, tend to get the more longer than they were to begin with --- no matter the language they're written in --- the less clear and defined their purpose is before you start programming. The clearer and the more defined their purpose is before you start programming, the easier and the shorter they will end up, and the easier and shorter they are, the more manageable they remain. The more manageable they remain, the better, and I dare say that the easier, clearer, shorter and more tightly defined a program is, the better the program is. So I guess if you start worring about learning, just start programming and you'll figure it out, because doing it is the best way to learn it, and you will then know what you need to ask. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/
Re: How to can develop a program
I agree. Roadmap is good. I even gave him a starting roadmap, but I think he is just looking for the answer. Which means he is going to be disappointed for sure. Mike On 8/2/22 03:41, Ruprecht Helms (privat) wrote: for bigger developing-project the best thing is a roadmap, because you have to plan the steps what the thing should do. Start with a sheet of paper and a pencil and after that you can decide what programminglanguage to use and which module you want to start first. Regards, Ruprecht Am 02.08.22 um 10:07 schrieb Christian Walde: On Mon, 01 Aug 2022 22:50:21 +0200, William Torrez Corea wrote: On Mon, Aug 1, 2022 at 8:16 AM Christian Walde wrote: On Sat, 23 Jul 2022 21:03:18 +0200, William Torrez Corea < willitc9...@gmail.com> wrote: My goal: I want to create you should start [...] reading Modern Perl and Ovid's Beginning Perl. Do you have some roadmap that I can follow?
Re: How to can develop a program
For PDF related development one valuable resource is https://opensource.adobe.com/dc-acrobat-sdk-docs/pdfstandards/pdfreference1.7old.pdf I don’t have any experience in this but investigated many years ago to automate digital publication. Maybe it will help. I’m sure Perl can be applied but as others suggested, using existing tools is a recommended as a place to start. With an open source toolkit and the above reference it is possible to understand more clearly how the open source tool was built to support the PDF document format. Sent from my iPhone > On Jul 29, 2022, at 3:27 PM, William Torrez Corea > wrote: > > > >> On Fri, Jul 29, 2022 at 11:38 AM hw wrote: >> On Sat, 2022-07-23 at 13:03 -0600, William Torrez Corea wrote: >> > My goal: I want to create something similar to the phone guide. In >> > this >> > page exist a great number of documents in format pdf. So, I want to >> > unite >> > the different documents and can filter for name, last name, location. >> > If I >> > make this manually I have to open each document, download the >> > document and >> > search the name of the person manually. >> > >> > The documents uploaded in this page are different: year, date. They >> > contain >> > different information. >> > >> >> Perhaps you can automate the downloading and then use tools that merge >> PDF files, like pdfunite, to turn them into a single PDF. There's also >> pdf2txt that can extract text from a PDF --- of course, that would only >> work if there were a way to detect which information is what. >> >> Since we do not have all the PDF files which apparently are all >> different, we can't tell how it might be possible to detect which >> information is what. >> >> I wouldn't even bother with this because PDF is awful to get >> information from automatically. Whoever makes these PDF files needs to >> provide the information in such a way that it is usable. Since you >> need to download all the files anyway to search for a name, you're >> better off merging them into a single file and search that in your >> favourite PDF viewer. >> >> >> > >> > On Wed, Jul 20, 2022 at 7:04 PM Mike wrote: >> > >> > > >> > > I'm going to be traveling, so will not be able to help much >> > > in the next 2 days. >> > > >> > > That is a PDF file you supplied. Is it fair to say you want to >> > > be able to search for all the names listed in a text file and be >> > > able to print out which file contains which name. And in some >> > > cases the name will not be in any of the files? Is that the goal? >> > > >> > > Define your goal and we will help you. >> > > >> > > >> > > The file below is a bit old, but maybe it works for your >> > > PDF files. I have not tested it on your url. I gather >> > > you don't have HTML tables, so maybe it is not for your case. >> > > >> > > >> > > Mike >> > > >> > > >> > > #!/usr/bin/perl -w >> > > # >> > > # >> > > # This program writes the results of the webpage listed in line 17 >> > > # to $outfile. So basically it converts HTML to text. >> > > # It works reasonably well with HTML tables. >> > > # >> > > # >> > > >> > > #!/usr/bin/perl >> > > use strict; >> > > use warnings; >> > > use LWP::UserAgent; >> > > use HTML::FormatText::WithLinks::AndTables; >> > > >> > > >> > > my $page = 'http://www.mflan.com/crime.htm'; >> > > >> > > my $outfile = 'output.txt'; >> > > >> > > chdir '/home/mike/Documents/copy'; >> > > >> > > open OUT, ">>$outfile" or die "Can't open '$outfile': $!"; >> > > >> > > my ($sl, $request, $response, $html); >> > > >> > > $sl = LWP::UserAgent->new; >> > > >> > > >> > > $sl->proxy('http', ''); # enter proxy if needs be / and set it for >> > > Soap >> > > too ... >> > > $request = HTTP::Request->new('GET', $page); >> > > $response = $sl->request($request); >> > > $html = $response->as_string; >> > > >> > > print "Got it into \$html.\n"; >> > > >> > > >> > > >> > > my $text = HTML::FormatText::WithLinks::AndTables->convert($html); >> > > >> > > >> > > print OUT "$text"; >> > > >> > > print "\nAll done.\n"; >> > > >> > > close OUT; >> > > >> > > >> > > __END__ >> > > >> > > >> > > >> > > >> > > On 7/20/22 10:13, William Torrez Corea wrote: >> > > > The url of the page: >> > > > >> > > > https://www.pgr.gob.ni/PDF/2021/GACETA/GACETA_17_08_2021.pdf >> > > > >> > > > On 7/20/22, William Torrez Corea wrote: >> > > > > Exist a page where you put info about the person but if you >> > > > > want to >> > > search >> > > > > a name you must search this manually. So, I want to automate >> > > > > this >> > > process >> > > > > with perl. >> > > > > -- >> > > > > >> > > > > With kindest regards, William. >> > > > > >> > > > > ⢀⣴⠾⠻⢶⣦⠀ >> > > > > ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system >> > > > > ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org >> > > > > ⠈⠳⣄ >> > > > > >> > > > >> > > >> > > >> > >> >> >> -- >> To unsubscribe, e-mail: beginners-unsubscr...@perl.org >> For additional commands, e-mail: beginners-h.
Re: How to can develop a program
First you need the roadmap of what you want to do. The other is to read one or both of the mentioned book below. Or book about beginning perl from the Oreily-Distributor. Maybe the book "Effective Perl Programming" from Joseph N. Hall can be an additional option. As mentioned in another mail from myselve. You have to decide in which programminglanguage you want to develope your tool. That can be perl, but that can also be C, C++, Java, PHP/mysql and so on. One suggestion for you take the language you better know. Learning perl you can do before you start developing a tool or you can do it parallel, but in the second way it is better to start with simple things. Regards, Ruprecht Am 02.08.22 um 23:17 schrieb William Torrez Corea: *Being that you barely know anything about Perl, you should start with learning how Perl works by reading Modern Perl and Ovid's Beginning Perl.* *Right now you're doing the moral equivalent of asking how to draw Mona Lisa's eye when you don't even know which end of a paint brush paints.* A roadmap is like a guide but I am too following your advice. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/
Re: How to can develop a program
On Tue, Aug 2, 2022 at 3:16 AM Christian Walde wrote: > On Tue, 02 Aug 2022 10:41:36 +0200, Ruprecht Helms (privat) < > rhe...@rheynmail.de> wrote: > > Am 02.08.22 um 10:07 schrieb Christian Walde: > >> On Mon, 01 Aug 2022 22:50:21 +0200, William Torrez Corea > >> wrote: > >> > >>> On Mon, Aug 1, 2022 at 8:16 AM Christian Walde > >>> > >>> wrote: > >>> > On Sat, 23 Jul 2022 21:03:18 +0200, William Torrez Corea < > willitc9...@gmail.com> wrote: > > > My goal: I want to create > > you should start [...] reading Modern Perl and Ovid's Beginning Perl. > >>> > >>> Do you have some roadmap that I can follow? > >> > >> > > > > > > > > for bigger developing-project the best thing is a roadmap, because you > > have to plan the steps > > what the thing should do. > > > > Start with a sheet of paper and a pencil and after that you can decide > > what programminglanguage > > to use and which module you want to start first. > > What you're describing is how to make a roadmap for the implementation of > a specific program. > > William asked about learning Perl, to which i already indicated what to > do, as seen in the text quoted above. > > Also, as matters of politeness: Please don't answer questions to others > for others unless you've been very, VERY careful in your analysis, and > please don't top-post if you're going to reply to me. > > -- > With regards, > Christian Walde > > -- > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > For additional commands, e-mail: beginners-h...@perl.org > http://learn.perl.org/ > > > *Being that you barely know anything about Perl, you should start with learning how Perl works by reading Modern Perl and Ovid's Beginning Perl.* *Right now you're doing the moral equivalent of asking how to draw Mona Lisa's eye when you don't even know which end of a paint brush paints.* A roadmap is like a guide but I am too following your advice. -- With kindest regards, William. ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org ⠈⠳⣄
Re: How to can develop a program
Hi everybody, Am 02.08.22 um 11:16 schrieb Christian Walde: On Tue, 02 Aug 2022 10:41:36 +0200, Ruprecht Helms (privat) wrote: Am 02.08.22 um 10:07 schrieb Christian Walde: What you're describing is how to make a roadmap for the implementation of a specific program. William asked about learning Perl, to which i already indicated what to do, as seen in the text quoted above. the last in the list was about a roadmap and after that questionmarks from that who asked. And about my person - I am a individual person that can think and act like this individual person want. So if I want to answer to the list, I simpel do that and I ignore comments from persons that have a problem with that I wrote. They mustn't read that. Regards, Ruprecht -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/
Re: How to can develop a program
On Tue, 02 Aug 2022 10:41:36 +0200, Ruprecht Helms (privat) wrote: Am 02.08.22 um 10:07 schrieb Christian Walde: On Mon, 01 Aug 2022 22:50:21 +0200, William Torrez Corea wrote: On Mon, Aug 1, 2022 at 8:16 AM Christian Walde wrote: On Sat, 23 Jul 2022 21:03:18 +0200, William Torrez Corea < willitc9...@gmail.com> wrote: My goal: I want to create you should start [...] reading Modern Perl and Ovid's Beginning Perl. Do you have some roadmap that I can follow? for bigger developing-project the best thing is a roadmap, because you have to plan the steps what the thing should do. Start with a sheet of paper and a pencil and after that you can decide what programminglanguage to use and which module you want to start first. What you're describing is how to make a roadmap for the implementation of a specific program. William asked about learning Perl, to which i already indicated what to do, as seen in the text quoted above. Also, as matters of politeness: Please don't answer questions to others for others unless you've been very, VERY careful in your analysis, and please don't top-post if you're going to reply to me. -- With regards, Christian Walde -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/
Re: How to can develop a program
for bigger developing-project the best thing is a roadmap, because you have to plan the steps what the thing should do. Start with a sheet of paper and a pencil and after that you can decide what programminglanguage to use and which module you want to start first. Regards, Ruprecht Am 02.08.22 um 10:07 schrieb Christian Walde: On Mon, 01 Aug 2022 22:50:21 +0200, William Torrez Corea wrote: On Mon, Aug 1, 2022 at 8:16 AM Christian Walde wrote: On Sat, 23 Jul 2022 21:03:18 +0200, William Torrez Corea < willitc9...@gmail.com> wrote: My goal: I want to create you should start [...] reading Modern Perl and Ovid's Beginning Perl. Do you have some roadmap that I can follow? -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/
Re: How to can develop a program
On Mon, 01 Aug 2022 22:50:21 +0200, William Torrez Corea wrote: On Mon, Aug 1, 2022 at 8:16 AM Christian Walde wrote: On Sat, 23 Jul 2022 21:03:18 +0200, William Torrez Corea < willitc9...@gmail.com> wrote: My goal: I want to create you should start [...] reading Modern Perl and Ovid's Beginning Perl. Do you have some roadmap that I can follow? -- With regards, Christian Walde -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/
Re: How to can develop a program
Hi William! On Mon, 1 Aug 2022 14:50:21 -0600 William Torrez Corea wrote: > On Mon, Aug 1, 2022 at 8:16 AM Christian Walde > wrote: > > > On Sat, 23 Jul 2022 21:03:18 +0200, William Torrez Corea < > > willitc9...@gmail.com> wrote: > > > > My goal: I want to create > > > > > > Being that you barely know anything about Perl, you should start with > > learning how Perl works by reading Modern Perl and Ovid's Beginning Perl. > > > > Right now you're doing the moral equivalent of asking how to draw Mona > > Lisa's eye when you don't even know which end of a paint brush paints. > > > > -- > > With regards, > > Christian Walde > > > > Do you have some roadmap that I can follow?. I receive the basics in my > class of computation (control structure, data structure, algorithms, > syntax, tools). I certainly have experience with C but never I make a long > program in Perl. see: 1. https://perl-begin.org/ 2. https://github.com/shlomif/Freenode-programming-channel-FAQ/blob/master/FAQ_with_ToC__generated.md 3. https://perl-begin.org/FAQs/freenode-perl/ welcome aboard! -- Shlomi Fish https://www.shlomifish.org/ https://www.shlomifish.org/humour/bits/facts/Emma-Watson/ “You are banished! You are banished! You are banished! Hey! I’m just kidding!” — https://www.shlomifish.org/humour.html Please reply to list if it's a mailing list post - https://shlom.in/reply . -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/
Re: How to can develop a program
On Mon, Aug 1, 2022 at 8:16 AM Christian Walde wrote: > On Sat, 23 Jul 2022 21:03:18 +0200, William Torrez Corea < > willitc9...@gmail.com> wrote: > > My goal: I want to create > > > Being that you barely know anything about Perl, you should start with > learning how Perl works by reading Modern Perl and Ovid's Beginning Perl. > > Right now you're doing the moral equivalent of asking how to draw Mona > Lisa's eye when you don't even know which end of a paint brush paints. > > -- > With regards, > Christian Walde > Do you have some roadmap that I can follow?. I receive the basics in my class of computation (control structure, data structure, algorithms, syntax, tools). I certainly have experience with C but never I make a long program in Perl. -- With kindest regards, William. ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org ⠈⠳⣄
Re: How to can develop a program
On Sat, 23 Jul 2022 21:03:18 +0200, William Torrez Corea wrote: My goal: I want to create Being that you barely know anything about Perl, you should start with learning how Perl works by reading Modern Perl and Ovid's Beginning Perl. Right now you're doing the moral equivalent of asking how to draw Mona Lisa's eye when you don't even know which end of a paint brush paints. -- With regards, Christian Walde
Re: How to can develop a program
Hi, I know eclipse as a developingtool that is normaly used for Java-development. But this tool also have plugins for developing in PHP, for Android-Programming and maybe for development in perl or in python. Regards, Ruprecht Am 01.08.22 um 13:23 schrieb hw: I have installed eclipse on my computer, i am using the plugin of perl. Before I used only VIM. I don't know what eclipse is, but it sounds like you're using tools like an editor. (I'd recommend Emacs, though, but go ahead and try out different editors to see which ones suit you and are good for the job. Perhaps limit the selection to emacs, vi, geany and kate because there are many editors you can try out, and doing that takes a lot of time.) Since you are using some tools, why not use others as well, like ones that make dealing with pdf files easier? What you're trying to do will be tedious and difficult enough already when using them. Without them, I doubt you'll have a good learning experience. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/
Re: How to can develop a program
On Sun, 2022-07-31 at 21:06 -0600, William Torrez Corea wrote: > On Sun, Jul 31, 2022 at 8:55 PM hw wrote: > > > On Sun, 2022-07-31 at 18:04 -0600, William Torrez Corea wrote: > > > On Sun, Jul 31, 2022 at 5:57 PM Marco Shaw > > > wrote: > > > > > > > Being a novice, you have to realize there are certain > > > > limitations > > > > to > > > > things. In other words, Perl maybe can't do EVERYTHING you > > > > want it > > > > to. > > > > > > > > > > Very clear, so, would I use another language of programming to > > > make > > > the > > > rest of the program?. > > > > > > > How do you intend to make any program at all without any tools, as > > you > > said you wanted to? > > > > > > -- > > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > > For additional commands, e-mail: beginners-h...@perl.org > > http://learn.perl.org/ > > > > I have installed eclipse on my computer, i am using the plugin of > perl. > Before I used only VIM. I don't know what eclipse is, but it sounds like you're using tools like an editor. (I'd recommend Emacs, though, but go ahead and try out different editors to see which ones suit you and are good for the job. Perhaps limit the selection to emacs, vi, geany and kate because there are many editors you can try out, and doing that takes a lot of time.) Since you are using some tools, why not use others as well, like ones that make dealing with pdf files easier? What you're trying to do will be tedious and difficult enough already when using them. Without them, I doubt you'll have a good learning experience. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/
Re: How to can develop a program
On Sun, Jul 31, 2022 at 8:55 PM hw wrote: > On Sun, 2022-07-31 at 18:04 -0600, William Torrez Corea wrote: > > On Sun, Jul 31, 2022 at 5:57 PM Marco Shaw > > wrote: > > > > > Being a novice, you have to realize there are certain limitations > > > to > > > things. In other words, Perl maybe can't do EVERYTHING you want it > > > to. > > > > > > > Very clear, so, would I use another language of programming to make > > the > > rest of the program?. > > > > How do you intend to make any program at all without any tools, as you > said you wanted to? > > > -- > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > For additional commands, e-mail: beginners-h...@perl.org > http://learn.perl.org/ > I have installed eclipse on my computer, i am using the plugin of perl. Before I used only VIM. -- With kindest regards, William. ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org ⠈⠳⣄
Re: How to can develop a program
On Sun, 2022-07-31 at 18:04 -0600, William Torrez Corea wrote: > On Sun, Jul 31, 2022 at 5:57 PM Marco Shaw > wrote: > > > Being a novice, you have to realize there are certain limitations > > to > > things. In other words, Perl maybe can't do EVERYTHING you want it > > to. > > > > Very clear, so, would I use another language of programming to make > the > rest of the program?. > How do you intend to make any program at all without any tools, as you said you wanted to? -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/
Re: How to can develop a program
On Sun, Jul 31, 2022 at 5:57 PM Marco Shaw wrote: > Being a novice, you have to realize there are certain limitations to > things. In other words, Perl maybe can't do EVERYTHING you want it to. > Very clear, so, would I use another language of programming to make the rest of the program?. -- With kindest regards, William. ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org ⠈⠳⣄
Re: How to can develop a program
On Sun, 2022-07-31 at 17:34 -0600, William Torrez Corea wrote: > Where can I start? > > I am Script kiddie, I have zero knowledge about Perl. I need a > stimulus. > > For example: I am executing perl examples. > > But the project i don't know how to start. > > https://learn.perl.org/ Always use the language most suited to the task. If you want something to work on, you could make a program that conveniently migrates emails from an old IMAP account into another one without messing things up. The hard part will be designing it, and the programming won't be particularly difficult. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/
Re: How to can develop a program
I didn't try to read and fully absorb what you've been saying. I see mention of PDFs... So if you're trying to work with PDF files, the first thing you can do is Google "Perl PDF extract information". If that comes up empty, or points you to external tools like an external module or command to help you, you may just have to use it. Start small... Maybe you don't want to use some kind of external PDF tool, for example, well make that a future goal to write your own Perl code to handle it, and maybe it's not even possible or it's going to be quite a bit more involved than you think it could be. Being a novice, you have to realize there are certain limitations to things. In other words, Perl maybe can't do EVERYTHING you want it to. On Sun, Jul 31, 2022 at 8:34 PM William Torrez Corea wrote: > Where can I start? > > I am Script kiddie, I have zero knowledge about Perl. I need a stimulus. > > For example: I am executing perl examples. > > But the project i don't know how to start. > > https://learn.perl.org/ >
Re: How to can develop a program
Where can I start? I am Script kiddie, I have zero knowledge about Perl. I need a stimulus. For example: I am executing perl examples. But the project i don't know how to start. https://learn.perl.org/
Re: How to can develop a program
Well, what can you do with your bare hands? Build tools so you can do stuff, starting with using stones and the like for tools? On Fri, 2022-07-29 at 13:26 -0600, William Torrez Corea wrote: > On Fri, Jul 29, 2022 at 11:38 AM hw wrote: > > > On Sat, 2022-07-23 at 13:03 -0600, William Torrez Corea wrote: > > > My goal: I want to create something similar to the phone guide. > > > In > > > this > > > page exist a great number of documents in format pdf. So, I want > > > to > > > unite > > > the different documents and can filter for name, last name, > > > location. > > > If I > > > make this manually I have to open each document, download the > > > document and > > > search the name of the person manually. > > > > > > The documents uploaded in this page are different: year, date. > > > They > > > contain > > > different information. > > > > > > > Perhaps you can automate the downloading and then use tools that > > merge > > PDF files, like pdfunite, to turn them into a single PDF. There's > > also > > pdf2txt that can extract text from a PDF --- of course, that would > > only > > work if there were a way to detect which information is what. > > > > Since we do not have all the PDF files which apparently are all > > different, we can't tell how it might be possible to detect which > > information is what. > > > > I wouldn't even bother with this because PDF is awful to get > > information from automatically. Whoever makes these PDF files > > needs to > > provide the information in such a way that it is usable. Since you > > need to download all the files anyway to search for a name, you're > > better off merging them into a single file and search that in your > > favourite PDF viewer. > > > > > > > > > > On Wed, Jul 20, 2022 at 7:04 PM Mike wrote: > > > > > > > > > > > I'm going to be traveling, so will not be able to help much > > > > in the next 2 days. > > > > > > > > That is a PDF file you supplied. Is it fair to say you want to > > > > be able to search for all the names listed in a text file and > > > > be > > > > able to print out which file contains which name. And in some > > > > cases the name will not be in any of the files? Is that the > > > > goal? > > > > > > > > Define your goal and we will help you. > > > > > > > > > > > > The file below is a bit old, but maybe it works for your > > > > PDF files. I have not tested it on your url. I gather > > > > you don't have HTML tables, so maybe it is not for your case. > > > > > > > > > > > > Mike > > > > > > > > > > > > #!/usr/bin/perl -w > > > > # > > > > # > > > > # This program writes the results of the webpage listed in line > > > > 17 > > > > # to $outfile. So basically it converts HTML to text. > > > > # It works reasonably well with HTML tables. > > > > # > > > > # > > > > > > > > #!/usr/bin/perl > > > > use strict; > > > > use warnings; > > > > use LWP::UserAgent; > > > > use HTML::FormatText::WithLinks::AndTables; > > > > > > > > > > > > my $page = 'http://www.mflan.com/crime.htm'; > > > > > > > > my $outfile = 'output.txt'; > > > > > > > > chdir '/home/mike/Documents/copy'; > > > > > > > > open OUT, ">>$outfile" or die "Can't open '$outfile': $!"; > > > > > > > > my ($sl, $request, $response, $html); > > > > > > > > $sl = LWP::UserAgent->new; > > > > > > > > > > > > $sl->proxy('http', ''); # enter proxy if needs be / and set it > > > > for > > > > Soap > > > > too ... > > > > $request = HTTP::Request->new('GET', $page); > > > > $response = $sl->request($request); > > > > $html = $response->as_string; > > > > > > > > print "Got it into \$html.\n"; > > > > > > > > > > > > > > > > my $text = HTML::FormatText::WithLinks::AndTables- > > > > >convert($html); > > > > > > > > > > > > print OUT "$text"; > > > > > > > > print "\nAll done.\n"; > > > > > > > > close OUT; > > > > > > > > > > > > __END__ > > > > > > > > > > > > > > > > > > > > On 7/20/22 10:13, William Torrez Corea wrote: > > > > > The url of the page: > > > > > > > > > > https://www.pgr.gob.ni/PDF/2021/GACETA/GACETA_17_08_2021.pdf > > > > > > > > > > On 7/20/22, William Torrez Corea > > > > > wrote: > > > > > > Exist a page where you put info about the person but if you > > > > > > want to > > > > search > > > > > > a name you must search this manually. So, I want to > > > > > > automate > > > > > > this > > > > process > > > > > > with perl. > > > > > > -- > > > > > > > > > > > > With kindest regards, William. > > > > > > > > > > > > ⢀⣴⠾⠻⢶⣦⠀ > > > > > > ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system > > > > > > ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org > > > > > > ⠈⠳⣄ > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > > For additional commands, e-mail: beginners-h...@perl.org > > http://learn.perl.org/ > > > > > > > I want to create this by means of code, i don't want to use any tool. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additio
Re: How to can develop a program
On Fri, Jul 29, 2022 at 11:38 AM hw wrote: > On Sat, 2022-07-23 at 13:03 -0600, William Torrez Corea wrote: > > My goal: I want to create something similar to the phone guide. In > > this > > page exist a great number of documents in format pdf. So, I want to > > unite > > the different documents and can filter for name, last name, location. > > If I > > make this manually I have to open each document, download the > > document and > > search the name of the person manually. > > > > The documents uploaded in this page are different: year, date. They > > contain > > different information. > > > > Perhaps you can automate the downloading and then use tools that merge > PDF files, like pdfunite, to turn them into a single PDF. There's also > pdf2txt that can extract text from a PDF --- of course, that would only > work if there were a way to detect which information is what. > > Since we do not have all the PDF files which apparently are all > different, we can't tell how it might be possible to detect which > information is what. > > I wouldn't even bother with this because PDF is awful to get > information from automatically. Whoever makes these PDF files needs to > provide the information in such a way that it is usable. Since you > need to download all the files anyway to search for a name, you're > better off merging them into a single file and search that in your > favourite PDF viewer. > > > > > > On Wed, Jul 20, 2022 at 7:04 PM Mike wrote: > > > > > > > > I'm going to be traveling, so will not be able to help much > > > in the next 2 days. > > > > > > That is a PDF file you supplied. Is it fair to say you want to > > > be able to search for all the names listed in a text file and be > > > able to print out which file contains which name. And in some > > > cases the name will not be in any of the files? Is that the goal? > > > > > > Define your goal and we will help you. > > > > > > > > > The file below is a bit old, but maybe it works for your > > > PDF files. I have not tested it on your url. I gather > > > you don't have HTML tables, so maybe it is not for your case. > > > > > > > > > Mike > > > > > > > > > #!/usr/bin/perl -w > > > # > > > # > > > # This program writes the results of the webpage listed in line 17 > > > # to $outfile. So basically it converts HTML to text. > > > # It works reasonably well with HTML tables. > > > # > > > # > > > > > > #!/usr/bin/perl > > > use strict; > > > use warnings; > > > use LWP::UserAgent; > > > use HTML::FormatText::WithLinks::AndTables; > > > > > > > > > my $page = 'http://www.mflan.com/crime.htm'; > > > > > > my $outfile = 'output.txt'; > > > > > > chdir '/home/mike/Documents/copy'; > > > > > > open OUT, ">>$outfile" or die "Can't open '$outfile': $!"; > > > > > > my ($sl, $request, $response, $html); > > > > > > $sl = LWP::UserAgent->new; > > > > > > > > > $sl->proxy('http', ''); # enter proxy if needs be / and set it for > > > Soap > > > too ... > > > $request = HTTP::Request->new('GET', $page); > > > $response = $sl->request($request); > > > $html = $response->as_string; > > > > > > print "Got it into \$html.\n"; > > > > > > > > > > > > my $text = HTML::FormatText::WithLinks::AndTables->convert($html); > > > > > > > > > print OUT "$text"; > > > > > > print "\nAll done.\n"; > > > > > > close OUT; > > > > > > > > > __END__ > > > > > > > > > > > > > > > On 7/20/22 10:13, William Torrez Corea wrote: > > > > The url of the page: > > > > > > > > https://www.pgr.gob.ni/PDF/2021/GACETA/GACETA_17_08_2021.pdf > > > > > > > > On 7/20/22, William Torrez Corea wrote: > > > > > Exist a page where you put info about the person but if you > > > > > want to > > > search > > > > > a name you must search this manually. So, I want to automate > > > > > this > > > process > > > > > with perl. > > > > > -- > > > > > > > > > > With kindest regards, William. > > > > > > > > > > ⢀⣴⠾⠻⢶⣦⠀ > > > > > ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system > > > > > ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org > > > > > ⠈⠳⣄ > > > > > > > > > > > > > > > > > > > > -- > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > For additional commands, e-mail: beginners-h...@perl.org > http://learn.perl.org/ > > > I want to create this by means of code, i don't want to use any tool. -- With kindest regards, William. ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org ⠈⠳⣄
Re: How to can develop a program
On Sat, 2022-07-23 at 13:03 -0600, William Torrez Corea wrote: > My goal: I want to create something similar to the phone guide. In > this > page exist a great number of documents in format pdf. So, I want to > unite > the different documents and can filter for name, last name, location. > If I > make this manually I have to open each document, download the > document and > search the name of the person manually. > > The documents uploaded in this page are different: year, date. They > contain > different information. > Perhaps you can automate the downloading and then use tools that merge PDF files, like pdfunite, to turn them into a single PDF. There's also pdf2txt that can extract text from a PDF --- of course, that would only work if there were a way to detect which information is what. Since we do not have all the PDF files which apparently are all different, we can't tell how it might be possible to detect which information is what. I wouldn't even bother with this because PDF is awful to get information from automatically. Whoever makes these PDF files needs to provide the information in such a way that it is usable. Since you need to download all the files anyway to search for a name, you're better off merging them into a single file and search that in your favourite PDF viewer. > > On Wed, Jul 20, 2022 at 7:04 PM Mike wrote: > > > > > I'm going to be traveling, so will not be able to help much > > in the next 2 days. > > > > That is a PDF file you supplied. Is it fair to say you want to > > be able to search for all the names listed in a text file and be > > able to print out which file contains which name. And in some > > cases the name will not be in any of the files? Is that the goal? > > > > Define your goal and we will help you. > > > > > > The file below is a bit old, but maybe it works for your > > PDF files. I have not tested it on your url. I gather > > you don't have HTML tables, so maybe it is not for your case. > > > > > > Mike > > > > > > #!/usr/bin/perl -w > > # > > # > > # This program writes the results of the webpage listed in line 17 > > # to $outfile. So basically it converts HTML to text. > > # It works reasonably well with HTML tables. > > # > > # > > > > #!/usr/bin/perl > > use strict; > > use warnings; > > use LWP::UserAgent; > > use HTML::FormatText::WithLinks::AndTables; > > > > > > my $page = 'http://www.mflan.com/crime.htm'; > > > > my $outfile = 'output.txt'; > > > > chdir '/home/mike/Documents/copy'; > > > > open OUT, ">>$outfile" or die "Can't open '$outfile': $!"; > > > > my ($sl, $request, $response, $html); > > > > $sl = LWP::UserAgent->new; > > > > > > $sl->proxy('http', ''); # enter proxy if needs be / and set it for > > Soap > > too ... > > $request = HTTP::Request->new('GET', $page); > > $response = $sl->request($request); > > $html = $response->as_string; > > > > print "Got it into \$html.\n"; > > > > > > > > my $text = HTML::FormatText::WithLinks::AndTables->convert($html); > > > > > > print OUT "$text"; > > > > print "\nAll done.\n"; > > > > close OUT; > > > > > > __END__ > > > > > > > > > > On 7/20/22 10:13, William Torrez Corea wrote: > > > The url of the page: > > > > > > https://www.pgr.gob.ni/PDF/2021/GACETA/GACETA_17_08_2021.pdf > > > > > > On 7/20/22, William Torrez Corea wrote: > > > > Exist a page where you put info about the person but if you > > > > want to > > search > > > > a name you must search this manually. So, I want to automate > > > > this > > process > > > > with perl. > > > > -- > > > > > > > > With kindest regards, William. > > > > > > > > ⢀⣴⠾⠻⢶⣦⠀ > > > > ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system > > > > ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org > > > > ⠈⠳⣄ > > > > > > > > > > > > -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/
Re: How to can develop a program
My goal: I want to create something similar to the phone guide. In this page exist a great number of documents in format pdf. So, I want to unite the different documents and can filter for name, last name, location. If I make this manually I have to open each document, download the document and search the name of the person manually. The documents uploaded in this page are different: year, date. They contain different information. On Wed, Jul 20, 2022 at 7:04 PM Mike wrote: > > I'm going to be traveling, so will not be able to help much > in the next 2 days. > > That is a PDF file you supplied. Is it fair to say you want to > be able to search for all the names listed in a text file and be > able to print out which file contains which name. And in some > cases the name will not be in any of the files? Is that the goal? > > Define your goal and we will help you. > > > The file below is a bit old, but maybe it works for your > PDF files. I have not tested it on your url. I gather > you don't have HTML tables, so maybe it is not for your case. > > > Mike > > > #!/usr/bin/perl -w > # > # > # This program writes the results of the webpage listed in line 17 > # to $outfile. So basically it converts HTML to text. > # It works reasonably well with HTML tables. > # > # > > #!/usr/bin/perl > use strict; > use warnings; > use LWP::UserAgent; > use HTML::FormatText::WithLinks::AndTables; > > > my $page = 'http://www.mflan.com/crime.htm'; > > my $outfile = 'output.txt'; > > chdir '/home/mike/Documents/copy'; > > open OUT, ">>$outfile" or die "Can't open '$outfile': $!"; > > my ($sl, $request, $response, $html); > > $sl = LWP::UserAgent->new; > > > $sl->proxy('http', ''); # enter proxy if needs be / and set it for Soap > too ... > $request = HTTP::Request->new('GET', $page); > $response = $sl->request($request); > $html = $response->as_string; > > print "Got it into \$html.\n"; > > > > my $text = HTML::FormatText::WithLinks::AndTables->convert($html); > > > print OUT "$text"; > > print "\nAll done.\n"; > > close OUT; > > > __END__ > > > > > On 7/20/22 10:13, William Torrez Corea wrote: > > The url of the page: > > > > https://www.pgr.gob.ni/PDF/2021/GACETA/GACETA_17_08_2021.pdf > > > > On 7/20/22, William Torrez Corea wrote: > >> Exist a page where you put info about the person but if you want to > search > >> a name you must search this manually. So, I want to automate this > process > >> with perl. > >> -- > >> > >> With kindest regards, William. > >> > >> ⢀⣴⠾⠻⢶⣦⠀ > >> ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system > >> ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org > >> ⠈⠳⣄ > >> > > > > -- With kindest regards, William. ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org ⠈⠳⣄
Re: How to can develop a program
I'm going to be traveling, so will not be able to help much in the next 2 days. That is a PDF file you supplied. Is it fair to say you want to be able to search for all the names listed in a text file and be able to print out which file contains which name. And in some cases the name will not be in any of the files? Is that the goal? Define your goal and we will help you. The file below is a bit old, but maybe it works for your PDF files. I have not tested it on your url. I gather you don't have HTML tables, so maybe it is not for your case. Mike #!/usr/bin/perl -w # # # This program writes the results of the webpage listed in line 17 # to $outfile. So basically it converts HTML to text. # It works reasonably well with HTML tables. # # #!/usr/bin/perl use strict; use warnings; use LWP::UserAgent; use HTML::FormatText::WithLinks::AndTables; my $page = 'http://www.mflan.com/crime.htm'; my $outfile = 'output.txt'; chdir '/home/mike/Documents/copy'; open OUT, ">>$outfile" or die "Can't open '$outfile': $!"; my ($sl, $request, $response, $html); $sl = LWP::UserAgent->new; $sl->proxy('http', ''); # enter proxy if needs be / and set it for Soap too ... $request = HTTP::Request->new('GET', $page); $response = $sl->request($request); $html = $response->as_string; print "Got it into \$html.\n"; my $text = HTML::FormatText::WithLinks::AndTables->convert($html); print OUT "$text"; print "\nAll done.\n"; close OUT; __END__ On 7/20/22 10:13, William Torrez Corea wrote: The url of the page: https://www.pgr.gob.ni/PDF/2021/GACETA/GACETA_17_08_2021.pdf On 7/20/22, William Torrez Corea wrote: Exist a page where you put info about the person but if you want to search a name you must search this manually. So, I want to automate this process with perl. -- With kindest regards, William. ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org ⠈⠳⣄
Re: How to can develop a program that search in different document in the network the name of a person?
The url of the page: https://www.pgr.gob.ni/PDF/2021/GACETA/GACETA_17_08_2021.pdf On 7/20/22, William Torrez Corea wrote: > Exist a page where you put info about the person but if you want to search > a name you must search this manually. So, I want to automate this process > with perl. > -- > > With kindest regards, William. > > ⢀⣴⠾⠻⢶⣦⠀ > ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system > ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org > ⠈⠳⣄ > -- With kindest regards, William. ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org ⠈⠳⣄
How to can develop a program that search in different document in the network the name of a person?
Exist a page where you put info about the person but if you want to search a name you must search this manually. So, I want to automate this process with perl. -- With kindest regards, William. ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org ⠈⠳⣄