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

Re^3: Things I Don't Use in Perl

by demerphq (Chancellor)
on Aug 24, 2005 at 16:59 UTC ( #486288=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Carp;
    sub name {
    ...
      }
      return $self->{name};
    }
    
  2. or download this
    sub set_name { 
        my $self = shift; 
    ...
        if (@_) { warn "Attempt to set value in get" }
        return $self->{name};
    }
    
  3. or download this
    my $val = $obj->set_name(@foo);
    
  4. or download this
    die "No arguments in set_name()" unless @_;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://486288]
help
Chatterbox?
[marinersk]: s/smack/whap/;
[talexb]: Wow, what hilariously bad form.
[SuicideJunkie]: Just wait; someday soon, you'll be given a DB with unicode emojis in the column names.
[Corion]: marinersk: Well, I have done select statements like select sum(foo) as "Total Amount", ..., but to have a table like that makes me shudder
[Corion]: SuicideJunkie: :-D
[marinersk]: SuicideJunkie LOL
[choroba]: Woohoo! Fixed a test that hasn't run for 3 years.
[marinersk]: Corion Yes, sometimes whitespace in column headers is acceptable, but I still consider it be less than desireable if that query might get revectored for an ETL-esque process...
[marinersk]: choroba++

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (11)
As of 2017-05-25 15:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?