LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-27-2012, 01:16 PM   #16
atjurhs
Member
 
Registered: Aug 2012
Posts: 168

Original Poster
Rep: Reputation: Disabled

so Chris, are you saying that Python should be an easier language for me to learn than Perl? Perl looked really scary!

I graduated from USC last May and took a job as a data analyst with a non-profit org (I'm not sure if they'd like me saying who) and I hadn't had any programming classes at all, so I'm learning this stuff on my own. If Python can help me sooner, then I'd be willing to try it I suppose???

Tabitha
 
Old 11-27-2012, 07:32 PM   #17
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
I've never used Python, but have used a lot of Perl; its not as scary as you think.
(I did a lot of C before Perl, and Perl is definitely quicker to code, as each line is equivalent to many lines of C and you don't have to worry about sizes of vars for instance.)

In essence what I'm saying is you need to move up to a more powerful/integrated lang like Perl or Python, rather than trying to do that kind of stuff by calling various tools from bash.

The basic rules of Perl var types are

1. any single value var is known as a scalar and the name must begin with '$' eg $var1 = 1, $var2 = 0.02, $var3 = 'n', $var4 = "asdd"


2. array names begin with '@' eg @arr1 = ( "a", 1, 0.02, 'n')

3. hashes begin with '%'
Code:
  %hash = (
        key1 => 'value1',
        key2 => 'value2',
        key3 => 'value3',
    );
http://www.tizag.com/perlT/index.php
http://perldoc.perl.org/
http://www.perlmonks.org/?node=Tutorials

I recommend you spend a decent amount of time on each candidate lang (ie research/read and do coding) and then go with what suits you
 
Old 11-28-2012, 10:16 AM   #18
atjurhs
Member
 
Registered: Aug 2012
Posts: 168

Original Poster
Rep: Reputation: Disabled
Thanks Chris! since there's no more laying on the beach and working on a tan, as I get some free time I will....

btw, these types of forums have really been awesome help! I've learned nore awk/sed/bash through this forum than anything I've done on my own.

Thanks again to both Chris and ntubski for all there help on this
 
Old 11-29-2012, 01:40 AM   #19
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
No worries ... its summer time here
 
  


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
nano -- changing colors for files without a "syntax" SilversleevesX Linux - Newbie 1 10-07-2012 03:00 AM
LXer: Debian: contempt for "end user" values has to stop! LXer Syndicated Linux News 0 08-13-2009 06:20 PM
"Permission denied" and "recursive directory loop" when searching for string in files mack1e Linux - Newbie 5 06-12-2008 08:38 AM
mambo: changing "Poll" to say "Encuesta" eantoranz Linux - Software 2 03-28-2006 12:35 PM
"X-MS" cant open because "x-Multimedia System" cant access files at "smb&qu ponchy5 Linux - Networking 0 03-30-2004 12:18 AM


All times are GMT -5. The time now is 07:39 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration