Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tlug] perl hashes





Quick perl question.

Passing a hash to a subroutine is just a matter of treating it as a
scalar isn't it?

Brett

eg

%foo

&bar ($foo)


sub bar {

my ($foo)= @example.com;

# foo is now available as a hash

}





-- 
Brett Robson 
Systems Administrator
GOL 
http://www.gol.com
Phone: 03-3239-6856    International: +81-3-3239-6856


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links