Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: Code Shortening (golf)

by Young Monk (Novice)
on Oct 18, 2010 at 19:22 UTC ( #866029=note: print w/ replies, xml ) Need Help??


in reply to Re: Code Shortening (golf)
in thread Code Shortening (golf) [RESOLVED]

But for using "say", we must include a line before the script like "use 5.10" rite? (not quite sure about the version)


Comment on Re^2: Code Shortening (golf)
Re^3: Code Shortening (golf)
by moritz (Cardinal) on Oct 18, 2010 at 19:33 UTC
    If you write a one-liner, using -E instead of -e enables the new features like say.
    Perl 6 - links to (nearly) everything that is Perl 6.
      Unfortunately, in spoj, one-liners are not allowed!

      So, the only way to use those options are
      #!perl -nE #program goes here

      So, using those actually increases the size of the program for small tasks!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://866029]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2014-08-28 01:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (255 votes), past polls