[Perl-unix-users] Is there a line continuation character in Perl ?

2003-06-24 Thread yzhang1908
___ Perl-Unix-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Re: [Perl-unix-users] Trouble accessing anonymous hash of array

2003-06-24 Thread Jon Earle
On Tue, 24 Jun 2003, Jon Earle wrote: > and confirm_delete has relevant lines, thus: > > foreach (@$hashref{'users'}) { > print "[0]\">\n"; > } Fixed it. I changed the above three to: foreach (@{$hashref->{'users'}}) { print "\n"; } And she works! C

[Perl-unix-users] Trouble accessing anonymous hash of array

2003-06-24 Thread Jon Earle
Hi, I have a function which creates a list of users. I want to pass that list to another function via an anonymous hash, thus: my @users = $query->param('users'); return unless @users; unless ($query->param('conf')) { &confirm_delete('delete', {'users' => [ @users ]});