NAME

Net::ADB::Util - Internal utility functions for Net::ADB

SYNOPSIS

use Net::ADB::Util qw(wantlist croak_unknown_params shell_quote);

DESCRIPTION

Internal utility functions used by Net::ADB and Net::ADB::Device.

NOTE: This module is not part of the public API: the functions may change or be removed without notice.

No function is exported by default.

FUNCTIONS

wantlist

return wantlist(\@list);

Return the list in list context, or the array reference in scalar context.

It must be called as the expression of return, so that it receives the context of the caller.

croak_unknown_params

croak_unknown_params(\%params);

Croak with the names of the parameters left in the hash (Unknown parameters: ...).

shell_quote

my $command = 'cat -- ' . shell_quote($file);

Quote a string for the device shell, with single quotes.

SEE ALSO

SUPPORT

Bugs / Feature Requests

Please report any bugs or feature requests through the issue tracker at https://github.com/giterlizzi/perl-Net-ADB/issues. You will be notified automatically of any progress on your issue.

Source Code

This is open source software. The code repository is available for public review and contribution under the terms of the license.

https://github.com/giterlizzi/perl-Net-ADB

git clone https://github.com/giterlizzi/perl-Net-ADB.git

AUTHOR

  • Giuseppe Di Terlizzi <gdt@cpan.org>

LICENSE AND COPYRIGHT

This software is copyright (c) 2026 by Giuseppe Di Terlizzi.

This is free software, licensed under:

The Artistic License 2.0 (GPL Compatible)