Skip to content

Instantly share code, notes, and snippets.

@kentfredric
Created December 2, 2012 16:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kentfredric/4189654 to your computer and use it in GitHub Desktop.
Save kentfredric/4189654 to your computer and use it in GitHub Desktop.
sub copyText {
my ($arg1, $arg2) = @_;
while ($arg1) {
$arg2->Empty();
$arg1 = $arg2->IsText();
sleep(1);
}
$_[0] = $arg1; # arg1 is passed by reference
}
my $target = "Bad Info";
my $source = "Hello World";
copyText( $target, $source );
if( $target == $source ){
say "Success";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment