Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: What is substring working on here.

by robartes (Priest)
on Jun 09, 2005 at 15:16 UTC ( #465167=note: print w/replies, xml ) Need Help??

in reply to What is substring working on here.

As gellyfish correctly states, substr() is being used as an lvalue here, i.e. something you can assign to. In this case, you are replacing five characters (the third argument) of $DATE, starting at position two (the second argument, and counting from 0) with the concatenation $YEAR.$MONTH. Hence the output you observe.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://465167]
[TCLion]: finaly finished the install wow that was over 10 min
[1nickt]: Corion using Moose will hardly reduce the number of dependencies or time to install DT !
[davido]: That's like wishing that your motorcycle came with a sherman tank as a trailer.
[Corion]: davido: No, more like my one sherman tank had a second sherman tank tied to its back ;)

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (10)
As of 2017-03-23 15:32 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (289 votes). Check out past polls.