Re: PERL reference question

2001-10-21 Thread RaFaL Pocztarski
David Draley wrote: > I am trying to make a hash slice that only includes the keys "SHELL" and > "DB" for %unix - using a reference. How do I reference specific elements in > a % table? thanks Hash slice is a list of values (for given keys). This two lines does the same: @slice = @unix{SHEL

PERL reference question

2001-10-21 Thread David Draley
I am trying to make a hash slice that only includes the keys "SHELL" and "DB" for %unix - using a reference. How do I reference specific elements in a % table? thanks --- #! /usr/bin/perl -w %unix = ( "SHELL" => "/bin/csh", "PAGER" => "more", "DB"