Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://227258]
[1nickt]: I note DateTime::Format:: Flexible, announced immediately below this box in the CPAN feed
[Corion]: 1nickt: That one sounds sensible as it will tell you when it found an error
[1nickt]: Throws on error, I believe
[1nickt]: But should handle month as number or word
[TCLion]: I am breaking down the line and putting the date in the correct order during output
[TCLion]: at least that's the plan
[1nickt]: Corion this looks good, from the pod: "there are 9000+ variations that are detected correctly in the test files (see t/data/* for most of them). If you can think of any that I do not cover, please let me know."
[TCLion]: some moron put the date like this : Mon Feb 20 09:31:30 2017
[Corion]: 1nickt: Yes, the module sounds promising indeed
[1nickt]: "putting the date in correct order" how?

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (17)
As of 2017-03-23 14:50 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (288 votes). Check out past polls.