Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Style, style, style

by dws (Chancellor)
on Sep 08, 2002 at 02:19 UTC ( #195959=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    1. while (<>) { ... } or while (my $line = <>) { ... }?
  2. or download this
    2. -w or use warnings;?
  3. or download this
    3. sub CONSTANT () { ... } or use constant CONSTANT => ...;?
  4. or download this
    4. my ($foo, $bar) = @_; or my $foo = shift; my $bar = shift;?
  5. or download this
    5. for (@array) { ... } or foreach (@array) { ... }?
  6. or download this
    6. print 'foo'; or print('foo');?
  7. or download this
    7. 'simple string'; or "simple string"?
  8. or download this
    8. glob '*' or <*>?
  9. or download this
    9. readline *FOO or <FOO>?
  10. or download this
    10. for (keys %foo) { $_ and $foo{$_} } or while (my ($key, $value) = each %foo) { $key and $value }?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2021-06-22 13:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)












    Results (105 votes). Check out past polls.

    Notices?