Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Re: Re: Context aware functions - best practices?

by sauoq (Abbot)
on Jan 15, 2003 at 22:47 UTC ( #227258=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my($x) = foo(...); 
    
  2. or download this
    my $x = foo(...);
    
  3. or download this
    my ($x) = split//,"foo";          # $x eq 'f'
    my $x   = split//,"foo";          # $x == 3
    ...
    
    my ($x) = localtime;              # seconds
    my $x   = localtime;              # String like ctime(3) 
    
  4. or download this
    sub foo { my @a = qw(foo bar); @a } 
    sub bar { my @a = qw(foo bar); wantarray ? @a : $a[0] } 
    ...
    my $q  = foo;    # $q == 2     (different information)
    my($r) = bar;    # $r eq 'foo'
    my $s  = bar;    # $s eq 'foo' (same information) 
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2014-12-25 22:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (163 votes), past polls