LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Operator help (https://www.linuxquestions.org/questions/linux-newbie-8/operator-help-4175448076/)

yaximik 01-31-2013 08:16 PM

Operator help
 
Hello,

In some config file for a Perl script I see such lines:

Code:

use constant DEBUG => 0;
use constant TMP_DIR => 'temp/';
use constant DBS => {hsref => {name => 'Some Name',
                    db => 'SomeDB',
                    parts => 2}};

I could not find definitoion of '=>' operator - is it the same as '=' ? Looks like it, just want to check...

gilead 01-31-2013 09:08 PM

As I understand it, it's synonymous with the comma operator.


All times are GMT -5. The time now is 11:22 PM.