Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^3: Non-traditional, Line by Line Compilation in Perl

by Anonymous Monk
on Dec 07, 2011 at 12:01 UTC ( #942231=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Non-traditional, Line by Line Compilation in Perl
in thread Non-traditional, Line by Line Compilation in Perl

Agreed, compilation would be based on statements, separated by semicolon!

We don't need no stinkin semicolons !:)

$ perl -c -e " use strict; use warnings; { $foo = 1 } { $bar }} " Global symbol "$foo" requires explicit package name at -e line 1. Global symbol "$bar" requires explicit package name at -e line 1. Unmatched right curly bracket at -e line 1, at end of line syntax error at -e line 1, near "}}" -e had compilation errors.
$ perl -e " use strict; use warnings; { our $foo = 1 } { our $bar } p +rint 666" 666


Comment on Re^3: Non-traditional, Line by Line Compilation in Perl
Select or Download Code
Replies are listed 'Best First'.
Re^4: Non-traditional, Line by Line Compilation in Perl
by sumeetgrover (Scribe) on Dec 07, 2011 at 12:24 UTC

    Well, I certainly do prefer using semicolons, having first learned C programming. I also regard using semi colons at the end of programming statements to be a good programming / software-development practice.

Re^4: Non-traditional, Line by Line Compilation in Perl
by ambrus (Abbot) on Dec 10, 2011 at 21:06 UTC

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2015-08-01 01:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (285 votes), past polls