my $schema_username = ( split /=/, $line )[1];
or
my ($schema_username) = $line =~ /=(.*)/s;
By the way, the first arg of split is a regex. Don't fool yourself into thinking it matches literally by using quotes.
- ikegami
In reply to Re: split and assign
by Anonymous Monk
in thread split and assign
by rvijay17
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |