LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-16-2007, 02:47 PM   #1
dbadrinath
LQ Newbie
 
Registered: Oct 2007
Posts: 2

Rep: Reputation: 0
Question 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.
 
Old 10-16-2007, 02:53 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
are you looking for someone to deliver you a solution? we aren't here to do your homework for you, sorry.
 
Old 10-16-2007, 03:04 PM   #3
dbadrinath
LQ Newbie
 
Registered: Oct 2007
Posts: 2

Original Poster
Rep: Reputation: 0
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.
 
Old 10-16-2007, 03:11 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 10-17-2007, 06:05 AM   #5
vargadanis
Member
 
Registered: Sep 2006
Posts: 248

Rep: Reputation: 30
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.
 
Old 10-17-2007, 08:29 AM   #6
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,515

Rep: Reputation: 239Reputation: 239Reputation: 239
this should work

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RHEL4u2 perl localtime() call issues (perl & glibc) Brad.Scalio@noaa.gov Linux - Enterprise 3 01-23-2007 09:27 PM
Problem with perl module for w3c validator to work on my local Apache+PHP+perl instal tbamt Linux - Software 0 12-16-2004 05:37 PM
perl(Cwd) perl(File::Basename) perl(File::Copy) perl(strict)....What are those? Baldorg Linux - Software 1 11-09-2003 08:09 PM
chrooting apache v2 (php, ssl, perl support) ; perl configuration markus1982 Linux - Security 3 01-26-2003 06:15 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration