Created
December 2, 2012 16:34
-
-
Save kentfredric/4189654 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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