in reply to Re: $mech help
in thread $mech help

Its not that simple. Its not two seperate prints, it prints both names in one print so how do i split them into two variables?

Replies are listed 'Best First'.
Re^3: $mech help
by Corion (Patriarch) on Sep 24, 2015 at 10:23 UTC

    Then your first step should be to identify the "one print" and split it up into two separate print statements. For example,

    print %s

    could be changed into a loop over the hash keys:

    for my $key (keys %s) { print "Key: %key, Value: $s{ $key }\n"; };
Re^3: $mech help
by choroba (Cardinal) on Sep 24, 2015 at 10:08 UTC
    length and substr, maybe?
    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
      What do you mean? I really do need help with this, i have no idea. I know its not straight forward

        This has little to do with WWW::Mechanize - you will need to learn Perl, and about Perl data structures and loops. Maybe perlintro or Modern Perl will help you there.

Re^3: $mech help
by Anonymous Monk on Sep 24, 2015 at 11:03 UTC
    What line is that?