Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
If you want to run a quick Perl script without having to create & write in a file, you can run `perl` by itself and enter your code. End it with __END__ on its own line, or Ctrl-D, and then it will run what you've input.

I prefer ending with __END__ because then you can copy/paste the code and its output and see easily where the code ends and the output begins.

[kirsle@damocles ~]$ perl print "Hello world!\n"; use Digest::MD5 qw(md5_hex); for (1..5) { print "$_ => " . md5_hex($_) . "\n"; } __END__ Hello world! 1 => c4ca4238a0b923820dcc509a6f75849b 2 => c81e728d9d4c2f636f067f89cc14862c 3 => eccbc87e4b5ce2fe28308fd9f2a7baf3 4 => a87ff679a2f3e71d9181a67b7542122c 5 => e4da3b7fbbce2345d7772b0674a318d5 [kirsle@damocles ~]$

In reply to Re: I like Python's interactive shell a lot better than Perl's debugger. What are my alternatives? by Kirsle
in thread I like Python's interactive shell a lot better than Perl's debugger. What are my alternatives? by Anonymous Monk

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or or How to display code and escape characters are good places to start.
Log In?

What's my password?
Create A New User
Domain Nodelet?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (1)
As of 2021-10-25 21:10 GMT
Find Nodes?
    Voting Booth?
    My first memorable Perl project was:

    Results (90 votes). Check out past polls.