Fedora Linux Support Community & Resources Center
  #1  
Old 23rd August 2004, 09:21 AM
ghenry's Avatar
ghenry Offline
Retired Community Manager
 
Join Date: Mar 2004
Location: Scotland
Age: 34
Posts: 1,019
Perl of PHP - What do you prefer?

I am starting to love Perl.
__________________
http://blog.suretecsystems.com
Reply With Quote
  #2  
Old 23rd August 2004, 03:39 PM
jimbo's Avatar
jimbo Offline
Registered User
 
Join Date: May 2004
Location: Seattle
Posts: 77
I really like PHP. Object Oriented and fast, terrific database integration and lot's of good documentation and scripts available. I've been doing all my web programming as well as starting to use it for scripting and haven't found any limitations. I hear you can also do GUI app with it now. I've got to give that a try.
Reply With Quote
  #3  
Old 23rd August 2004, 03:42 PM
ewdi's Avatar
ewdi Offline
Retired Admin
 
Join Date: Jan 2004
Location: Penguin Land
Age: 63
Posts: 1,939
i like php but for shell scripts i rather use perl, perl have more control however need to be careful because that control could be double edge sword
__________________
+ Visit My new blog
- [B]SlashGear US, SlashGear Japan, and
+Founder & Admin of www.fedoraforum.org

Follow me at http://twitter.com/ewdi

Laptop : MacBook Pro 2.4Ghz 4GB DDR, 20-inch iMac Aluminium/4GB RAM
Reply With Quote
  #4  
Old 23rd August 2004, 03:49 PM
zylr Offline
Registered User
 
Join Date: Aug 2004
Posts: 23
Python.
Its a scripting language like Perl, but it is cleaner, has better OO, has really simple syntax and lots of packages that come with it.
Check it out, its already in Fedora. Type: python at a prompt.
For docs and a really good tutorial, visit the offical Python webpage: www.python.org
Reply With Quote
  #5  
Old 23rd August 2004, 03:52 PM
earobinson111's Avatar
earobinson111 Offline
Registered User
 
Join Date: Jul 2004
Location: Canada
Age: 27
Posts: 504
I like python alos, Yet a good programer knows that each language has its pro's and con's so i some times use all 3 of them, but mostly python!!!
__________________
Google Talk: earobinson
http://www.google.com/talk/
Reply With Quote
  #6  
Old 24th August 2004, 04:30 AM
crackers's Avatar
crackers Offline
Retired Community Manager
 
Join Date: Feb 2004
Location: Seattle, WA, USA
Age: 56
Posts: 3,423
I tend to avoid Perl when possible - I've been subjected to the gawd-awful obfuscation that you can do with it and some of it just made my head hurt - a lot! For the large majority of what I need to do via shells, I just use plain ol' Bash. Right now I don't have a "middle-ground" - but from what I've seen I'd probably lean towards Python. If I can get over code blocks being defined by indentation. BLECH!
__________________
Linux User #28251 (April '93)
Professional Java Geek :cool:
Reply With Quote
  #7  
Old 24th August 2004, 03:42 PM
zylr Offline
Registered User
 
Join Date: Aug 2004
Posts: 23
Quote:
Originally Posted by crackers
I've been subjected to the gawd-awful obfuscation that you can do with it and some of it just made my head hurt - a lot!
Yup, thats Perl!
But you get so used to the $_ and some other operators. It makes it easy, but in a bad way... A really bad way!
Reply With Quote
  #8  
Old 24th August 2004, 03:50 PM
pigpen's Avatar
pigpen Offline
Registered User
 
Join Date: Nov 2003
Location: Regensburg, Germany
Age: 42
Posts: 447
I use PHP for web development but also for command line scripting when bash gets too complicated.
Although I'm pretty familiar with PHP by now, I'd like to know more PERL and am really eager to learn Python
(especially when it comes to GUI programming - pygtk comes to mind).
__________________
/(bb|[^b]{2})/ -- that is the question!
Reply With Quote
  #9  
Old 24th August 2004, 04:36 PM
Mat's Avatar
Mat Offline
Retired Community Manager
 
Join Date: Jun 2004
Location: lair of a unix daemon
Posts: 1,155
IMO, i've never seen a "clean" (read: easy to understand) perl script.. I much more prefer tcl.. can be used in cgi's as well and is just lovely
__________________
Man will always find a difficult means to perform a simple task
(Rube Goldberg)

Having fun with Tcl at
Mat's Playground
Reply With Quote
  #10  
Old 25th August 2004, 01:39 AM
zjimward's Avatar
zjimward Offline
Registered User
 
Join Date: Mar 2004
Location: Tennessee
Posts: 73
It's always a matter of taste. I use PHP for web development. For scripting I mostly use Python. I've used perl and written a lot of bash. Scripting and Languages all have good and bad. My rule, is write it so some one else can maintain it and don't go for the tricks to make yourself look smart. It'll byte you in the core dump every time.
Reply With Quote
  #11  
Old 25th August 2004, 04:30 AM
crackers's Avatar
crackers Offline
Retired Community Manager
 
Join Date: Feb 2004
Location: Seattle, WA, USA
Age: 56
Posts: 3,423
Quote:
Originally Posted by zjimward
is write it so some one else can maintain it and don't go for the tricks to make yourself look smart.
Write COMMENTS!!!! That means it also won't get you when you're trying to figure out whatinhell it does 6 months later...
__________________
Linux User #28251 (April '93)
Professional Java Geek :cool:
Reply With Quote
  #12  
Old 25th August 2004, 08:11 PM
zjimward's Avatar
zjimward Offline
Registered User
 
Join Date: Mar 2004
Location: Tennessee
Posts: 73
Quote:
Originally Posted by crackers
Write COMMENTS!!!! That means it also won't get you when you're trying to figure out whatinhell it does 6 months later...
Comments are great too. Also use variables that make sense and not just x, x, z. Nothing like a loop that contains a = 1 to 500. Much better when it is nEmployees = 1 to 500. Then some one actually knows what it's counting.
Reply With Quote
  #13  
Old 26th August 2004, 04:56 AM
crackers's Avatar
crackers Offline
Retired Community Manager
 
Join Date: Feb 2004
Location: Seattle, WA, USA
Age: 56
Posts: 3,423
Quote:
Originally Posted by zjimward
Nothing like a loop that contains a = 1 to 500. Much better when it is nEmployees = 1 to 500. Then some one actually knows what it's counting.
Er, sometimes. Some of us old fogeys still use i,j,k,l for loops - especially when it's "just a loop" and the counter really has no significance beyond being used in a loop.

Now, five extra points to anyone under 40 years of age that can tell the rest of the class where the "i,j,k,l" idiom came from...
__________________
Linux User #28251 (April '93)
Professional Java Geek :cool:
Reply With Quote
  #14  
Old 27th August 2004, 09:50 AM
ghenry's Avatar
ghenry Offline
Retired Community Manager
 
Join Date: Mar 2004
Location: Scotland
Age: 34
Posts: 1,019
If anyone wants a yourname@perl.me.uk just let me know. Just bought the domain and hosting a few things on there.
__________________
http://blog.suretecsystems.com
Reply With Quote
  #15  
Old 27th August 2004, 12:57 PM
ChrisMUC Offline
Registered User
 
Join Date: Jul 2004
Posts: 7
Quote:
Originally Posted by ghenry
I am starting to love Perl.
Well, you cannot compare Perl and PHP at all. They've got completely different aims.
Perl is a scripting language for every kind of text processing/manipulation, while PHP
was developed for dynamic webpage generation.

I like perl pretty much (and I also like PHP for webpage generations), I even once wrote a large app with GUI and database backend, but to be honest - coding that in perl is a bit masochistic, and today, I'd definitely not recommend it any more. Maybe, it's because I'm converted to Java.
Reply With Quote
Reply

Tags
perl, php, prefer

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Network Manager: Prefer 802.11a over 802.11g ACiD GRiM Using Fedora 0 28th July 2009 07:44 AM
Web developers, which platform do you prefer ? ziko Wibble 10 11th June 2008 01:24 AM
Which BitTorrent client do you prefer? r1348 Fedora Focus 29 25th December 2007 06:22 PM
Deskop Environment- which one u prefer? mamoo Using Fedora 7 23rd November 2006 10:26 PM
Nautilus Which View do you prefer jim Using Fedora 8 1st January 2006 08:04 PM


Current GMT-time: 14:17 (Saturday, 25-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat