Welcome to Gaia! ::

The Linux Guild: Closing down. Merging with new guild

Back to Guilds

 

 

Reply Empty
What is a comparison of Perl to bash?

Quick Reply

Enter both words below, separated by a space:

Can't read the text? Click here

Submit

You Rule Supreme

PostPosted: Thu Aug 10, 2006 7:42 pm


I'm thinking of learning Perl so was wondering if it can do everything that bash can do? I have no idea being a complete beginner.
PostPosted: Fri Aug 11, 2006 6:26 pm


isn't bash a command line? o.o;

sweatdrop

I may be the owner of the guild, but i'm still learning myself.
PhaseBurn is the god of all penguins here. o:

Lieutenant--Dan
Captain


[N0M4D]
Crew

PostPosted: Mon Aug 14, 2006 3:45 pm


Perl is a programming language, I believe. BASH is a shell/scripting language for use in the command line. Much like DOS.
PostPosted: Mon Aug 14, 2006 3:51 pm


I hear the Perl syntax makes it simpler to create some one line programs and because of that people like to use it for "scripts".
I've seen a couple neat programs made with bash but am assuming they could've also been made with Perl.

I don't understand the difference between Perl programs/scripts and bash scripts so was wondering if I were to try and teach myself Perl would there be any reason to learn bash?

You Rule Supreme


Pirogoth Wolfblood
Vice Captain

PostPosted: Wed Aug 23, 2006 6:42 pm


Perl was designed to be used FOR shell scripting if I remember correctly. It's a very powerfull scripting language. It's also heavily used for web sites. A good example of this would be Amazon.com. Almost entierly written in perl.

My only issue with perl is that it's syntax is horrendous.
PostPosted: Sat Jan 13, 2007 10:55 am


[N0M4D]
Perl is a programming language, I believe. BASH is a shell/scripting language for use in the command line. Much like DOS.


Bash is not COMMAND.COM. Not even close. Bash supports command history, auto complete, smart terminals, and all sorts of other stuff than DOS doesn't.

Pirogoth Wolfblood
Perl was designed to be used FOR shell scripting if I remember correctly. It's a very powerfull scripting language. It's also heavily used for web sites. A good example of this would be Amazon.com. Almost entierly written in perl.

My only issue with perl is that it's syntax is horrendous.


Perl was designed to parse text files, actually. Although it is a powerful scripting language and could be used to replace bash, its not a good idea, because you would need to write a shell before you could do anything.

And Amazon is written in Perl? Why?

m42a


Pirogoth Wolfblood
Vice Captain

PostPosted: Sun Feb 11, 2007 5:55 pm


m42a
[N0M4D]
Perl is a programming language, I believe. BASH is a shell/scripting language for use in the command line. Much like DOS.


Bash is not COMMAND.COM. Not even close. Bash supports command history, auto complete, smart terminals, and all sorts of other stuff than DOS doesn't.

Pirogoth Wolfblood
Perl was designed to be used FOR shell scripting if I remember correctly. It's a very powerfull scripting language. It's also heavily used for web sites. A good example of this would be Amazon.com. Almost entierly written in perl.

My only issue with perl is that it's syntax is horrendous.


Perl was designed to parse text files, actually. Although it is a powerful scripting language and could be used to replace bash, its not a good idea, because you would need to write a shell before you could do anything.

And Amazon is written in Perl? Why?


When I meant to replace BASH, I meant BASH scripting, not the shell itself. But your right, it was originally made for parsing text files (and still largely fills this role).

As for Amazon, don't ask me. I've no clue. I'd think PHP would be a better candidate myself. Then again Amazon's search (A9 I think it's called) would benefit from perl's abilities with RE's.
Reply
Empty

 
Manage Your Items
Other Stuff
Get GCash
Offers
Get Items
More Items
Where Everyone Hangs Out
Other Community Areas
Virtual Spaces
Fun Stuff
Gaia's Games
Mini-Games
Play with GCash
Play with Platinum