Guest User

Untitled

a guest
Jun 22nd, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. my $value = 'blah';
  2. my $value2 = 'blah';
  3.  
  4. my @urls = ('url', 'url2', 'url3');
  5. foreach (@urls) {
  6. $ua->post($_,
  7. [ 'test' => $value,
  8. 'test2' => $value2,
  9. ]
  10. }
  11.  
  12.  
  13. I want the foreach to call and get the URL then define what values to post to the form using ua->post($_, [ array => values ] ).
  14.  
  15.  
  16. array(domain.tld -> (name => 'Test Name', lastname => 'Last Name'))
Add Comment
Please, Sign In to add comment