LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   new to perl, please help (https://www.linuxquestions.org/questions/programming-9/new-to-perl-please-help-592322/)

dbadrinath 10-16-2007 02:47 PM

new to perl, please help
 
I am totally new to perl but I know a bit of Ruby and can catch up fast.

Could someone help me get started with my assignment?

I need to write a script that downloads a db file, unzips it, run a select query which returns a count and store it in a text file.

Thanks in advance.

acid_kewpie 10-16-2007 02:53 PM

are you looking for someone to deliver you a solution? we aren't here to do your homework for you, sorry.

dbadrinath 10-16-2007 03:04 PM

You didn't have to be so harsh.

There are people who are still eager to learn...
And thats how there are people like you now helping others

If you didn't want to help you didn't have to reply...

Thanks so much for taking time to post your reply.

acid_kewpie 10-16-2007 03:11 PM

i wasn't being harsh, you are just going against the rules you explicitly agreed to when you joined the site... http://www.linuxquestions.org/linux/rules.html

if you are able to break down what you need, as specific questions about specific issues you're having then that's fine, but you can't expect other members to provide you with a solution verbatim.

vargadanis 10-17-2007 06:05 AM

For the net connection go to
http://search.cpan.org/~spidb/Net-ex...lib/Net/TCP.pm
If u want to download it from an HTTP server the solution is
http://search.cpan.org/~pgollucci/mo...dlers/http.pod
For the compression:
http://search.cpan.org/~pmqs/IO-Comp...ompress/Zip.pm
For using it as a db (supposing it is a mysql db)
http://search.cpan.org/~rudy/DBD-mys...8/lib/Mysql.pm

If u have specific questions ask but try to do it yourself. :D

bigearsbilly 10-17-2007 08:29 AM

this should work

Code:

perl -e 'print pack "H*", "646f20796f752077616e74206a616d206f6e2069743f0a"'


All times are GMT -5. The time now is 11:17 AM.