DaemonForums  

Go Back   DaemonForums > Miscellaneous > Programming

Programming C, bash, Python, Perl, PHP, Java, you name it.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 18th November 2008
stukov's Avatar
stukov stukov is offline
Real Name: Jean-Michel Philippon-Nadeau
Package Pilot
 
Join Date: May 2008
Location: Sherbrooke, Qc, Canada
Posts: 167
Default Basic Perl arrays question

Hello,

What does this code snippet do?

Code:
my $attributes = ['objectClass'     => ['top', 'posixAccount', 'shadowAccount', 'inetOrgPerson'],
                  'loginShell'      => "/bin/bash"];
In my understanding, $attributes is a reference to an array. I though Perl arrays could not have indexes? What will the => do then?


Thanks!
__________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction."
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Basic networking fail. diw OpenBSD General 13 31st March 2009 09:29 AM
Basic sshd hardening anomie Guides 12 12th September 2008 03:39 AM
C 2D arrays jgroch Programming 16 2nd August 2008 01:54 AM
need some basic help on ifconfig daemon-dd FreeBSD General 4 29th July 2008 03:21 PM
ksh arrays mtx Programming 11 7th May 2008 10:00 AM


All times are GMT. The time now is 11:26 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick