Get Advice Icon

Need advice about which tool to choose?Ask the StackShare community!

Perl

3.5K
934
+ 1
575
Visual Basic

550
510
+ 1
8
Add tool

Perl vs Visual Basic: What are the differences?

  1. Syntax: One key difference between Perl and Visual Basic is their syntax. Perl is known for its concise and compact syntax, allowing for quick and easy scripting. On the other hand, Visual Basic has a more verbose syntax with a focus on readability and ease of understanding for beginners.

  2. Platform: Another difference is the platform compatibility. Perl is a cross-platform language, meaning it runs on various operating systems such as Windows, Linux, and macOS. In contrast, Visual Basic is primarily designed for Windows operating systems, limiting its use on other platforms.

  3. Community Support: Perl has a large and active community of developers who contribute to its open-source ecosystem, providing a wide range of libraries and modules for different functionalities. Visual Basic, while supported by Microsoft, may have a smaller community compared to Perl, resulting in fewer resources and support.

  4. Usage: Perl is commonly used for system administration, web development, and network programming due to its powerful text processing capabilities. Visual Basic, on the other hand, is often used for developing Windows applications, especially in the business and enterprise software domains.

  5. Scripting vs. Programming: Perl is known as a scripting language, allowing for rapid prototyping and automation tasks. Visual Basic, on the other hand, is generally considered a programming language with a focus on building larger applications with graphical user interfaces (GUIs).

  6. Learning Curve: The learning curve for Perl is usually steeper for beginners due to its flexible syntax and various ways to accomplish tasks. In comparison, Visual Basic is often seen as more beginner-friendly with its intuitive development environment and robust debugging tools.

In Summary, the key differences between Perl and Visual Basic lie in their syntax, platform compatibility, community support, usage, scripting capabilities, and learning curve.

Advice on Perl and Visual Basic
Needs advice
on
GolangGolangPerlPerl
and
RustRust

I intend to use a programming language which I'll use as AWS runtime and write a script that will comb through tons of files in a directory and its subdirectories and search for simple text regular expressions and process and write the matches in a file as output. I have heard that Perl is good for regex based search but I also want the performance to be good as it will have to go through tons of files for IO. In this post: https://filia-aleks.medium.com/aws-lambda-battle-2021-performance-comparison-for-all-languages-c1b441005fd1, I see that Rust works well as AWS Lambda runtime with very good performance. Which one should I choose as my AWS lambda runtime for this problem? Golang is also an option as it is fast as per the above link.

See more
Replies (1)
Recommends

I used to work in a Perl shop and must admit that the language is very simple for tasks like these, but as you mentioned it's not fast at execution time. I'm now a Go programmer professionally but I taught myself the language while in college purely out of interest and eventually found my way to the job, not the other way around. I've recently been learning a little rust because of how much that language comes up in conversations around Go. I find the concept of the borrow checker nice but I have to admit I feel lost like I am in most flavors of new fancy framework js. That's not to say Rust is really anything like js, but the learning appears the same to me as someone who's convinced they could learn just about any programming language if it was necessary (over time I've seen procedural, OOP, declarative and functional stuff but never programming logic outside of the prolog code I wrote in school).

Go isn't made for your specific task at hand but it's a very easy language to pick up and it has good directory traversal standard library code and good regex (even though with time perl's has been optimized to be faster and I think it's written in C++) but more than anything Go is "cloud native" programming in that an awful lot of new microservice tech stacks are centered around it, docker and kubernetes are written in it, and there's a thriving community whose focus is generally web-first and performance-oriented. This means for your use case there might already be a large cohort of gophers that have asked the stackoverflow questions for you

I personally would push you towards the NYT Profiler for Perl before I would towards Rest, but that's because I know you wouldn't waste any time being able to get to the task at hand and then make it go faster, and I expect all but a few rustaceans would be able to do so with the same speed.

Whatever you pick I wish you the very best of luck!

See more
Manage your open source components, licenses, and vulnerabilities
Learn More
Pros of Perl
Pros of Visual Basic
  • 72
    Lots of libraries
  • 66
    Open source
  • 61
    Text processing
  • 54
    Powerful
  • 49
    Unix-style
  • 47
    Regex
  • 37
    Stable
  • 32
    Concise syntax
  • 29
    Hackerish
  • 22
    Easy to use
  • 16
    Swiss army chainsaw
  • 13
    Code Less Do More
  • 12
    CPAN
  • 9
    Freedom
  • 8
    All purpose
  • 5
    Readability
  • 5
    Familiar
  • 5
    Many ways to do it
  • 5
    Community
  • 4
    Object-Oriented
  • 4
    Modular
  • 4
    Smart (does alot for you)
  • 3
    Postmodern
  • 3
    It's the best one-off task language
  • 2
    For a man
  • 2
    Good man pages
  • 1
    Auto case variables
  • 1
    Single Source Library (CPAN)
  • 1
    Multi-threaded support
  • 1
    Multiparadigm
  • 1
    C-style
  • 1
    Hashes
  • 5
    ALGOL-like syntax makes code more readable
  • 3
    XML Literals

Sign up to add or upvote prosMake informed product decisions

Cons of Perl
Cons of Visual Basic
  • 4
    Messy $/@/% syntax
  • 3
    No exception handling
  • 2
    Bad OO support
  • 2
    "1;"
  • 2
    No OS threads
  • 1
    Variables are global by default
  • 1
    Copy-on-create for interpreter-based threads
  • 1
    Barewords
  • 1
    Errors/warnings are ignored by default
  • 4
    Specific to the microsoft platform

Sign up to add or upvote consMake informed product decisions

2.2K
13.4K
68.1K
28.2K
- No public GitHub repository available -

What is Perl?

Perl is a general-purpose programming language originally developed for text manipulation and now used for a wide range of tasks including system administration, web development, network programming, GUI development, and more.

What is Visual Basic?

Visual Basic is derived from BASIC and enables the rapid application development (RAD) of graphical user interface (GUI) applications, access to databases using Data Access Objects, Remote Data Objects, or ActiveX Data Objects, and creation of ActiveX controls and objects.

Need advice about which tool to choose?Ask the StackShare community!

What companies use Perl?
What companies use Visual Basic?
Manage your open source components, licenses, and vulnerabilities
Learn More

Sign up to get full access to all the companiesMake informed product decisions

What tools integrate with Perl?
What tools integrate with Visual Basic?

Sign up to get full access to all the tool integrationsMake informed product decisions

Blog Posts

What are some alternatives to Perl and Visual Basic?
PHP
Fast, flexible and pragmatic, PHP powers everything from your blog to the most popular websites in the world.
Ruby
Ruby is a language of careful balance. Its creator, Yukihiro “Matz” Matsumoto, blended parts of his favorite languages (Perl, Smalltalk, Eiffel, Ada, and Lisp) to form a new language that balanced functional programming with imperative programming.
C lang
Java
Java is a programming language and computing platform first released by Sun Microsystems in 1995. There are lots of applications and websites that will not work unless you have Java installed, and more are created every day. Java is fast, secure, and reliable. From laptops to datacenters, game consoles to scientific supercomputers, cell phones to the Internet, Java is everywhere!
Python
Python is a general purpose programming language created by Guido Van Rossum. Python is most praised for its elegant syntax and readable code, if you are just beginning your programming career python suits you best.
See all alternatives