Vizible’s Blog

How to run Perl in interactive mode

Posted in Tips by wearetherock on July 21, 2009

# perl -d -e 1

Loading DB routines from perl5db.pl version 1.3
Editor support available.

Enter h or `h h’ for help, or `man perldebug’ for more help.

main::(-e:1): 1
DB @prolang = (‘java’, ‘c++’, ‘python’, ‘perl’)
DB print @prolang[0]
java
DB

Advertisements

One Response

Subscribe to comments with RSS.

  1. wearetherock said, on July 21, 2009 at 12:32 pm

    better solution
    sudo apt-get install perlconsole

    much like python 🙂


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: