in reply to Reading session data
I rarely use the old $$ syntax these days so I would do this:
use strict; use warnings; use Data::Dumper; my $session_data = { azuread => { login_info => { roles => [ 'Medewerkers', 'etm' ] } } }; print Dumper $$session_data{azuread}{login_info}{roles}; # Like you ha +d print $session_data->{azuread}{login_info}{roles}[0] . "\n";
It just makes the dereferencing easier to me. See also perldsc for more general info on this.
🦛
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Reading session data
by Bod (Parson) on Jun 30, 2023 at 19:58 UTC | |
by hippo (Archbishop) on Jul 01, 2023 at 09:12 UTC | |
by kcott (Archbishop) on Jul 01, 2023 at 13:25 UTC | |
by hippo (Archbishop) on Jul 01, 2023 at 14:29 UTC | |
by kcott (Archbishop) on Jul 01, 2023 at 02:33 UTC | |
by hippo (Archbishop) on Jul 01, 2023 at 09:19 UTC | |
|
Re^2: Reading session data
by PeterKaagman (Beadle) on Jun 30, 2023 at 07:14 UTC |