mirror of
https://github.com/moparisthebest/curl
synced 2024-12-23 08:38:49 -05:00
14 lines
254 B
Perl
Executable File
14 lines
254 B
Perl
Executable File
#!/usr/bin/env perl
|
|
# Check that the length of a given URL is correct
|
|
if ( $#ARGV != 1 )
|
|
{
|
|
print "Usage: $0 string length\n";
|
|
exit 3;
|
|
}
|
|
if (length(@ARGV[0]) != @ARGV[1])
|
|
{
|
|
print "Given host IP and port not supported\n";
|
|
exit 1;
|
|
}
|
|
exit 0;
|