403Webshell
Server IP : 81.2.241.106  /  Your IP : 216.73.216.165
Web Server : Apache/2.4.67 (Debian)
System : Linux tranq-f.bakta.org 5.10.0-45-amd64 #1 SMP Debian 5.10.259-1 (2026-07-02) x86_64
User : lisky ( 1002)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/bin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/bin//pod2sdf
#!/usr/bin/perl

use Pod::Sdf;
use strict;

# Get the options, if any
my %param = ();
if ($ARGV[0] eq '-m') {
    $param{'main'} = 1;
    shift;
}

# Check the usage
unless (scalar(@ARGV) == 1) {
    print "usage: pod2sdf [-m] infile > outfile\n";
    exit 1;
}

# Load the pod into an array
my $infile = shift;
open(INFILE, $infile) || die "unable to open '$infile': $!\n";
my @pod = <INFILE>;
chop(@pod);

# Convert it to SDF and output it
my @sdf = pod2sdf(\@pod, \%param);
print join("\n", @sdf), "\n";

1;

__END__

=head1 NAME

pod2sdf - converts POD to SDF markup

=head1 SYNOPSIS

  pod2sdf [-m] infile > outfile

=head1 DESCRIPTION

B<pod2sdf> should be used when one wants to use SDF instead of
POD as the base documentation format.  B<sdf> does this
convertion on the fly for C<*.pod, *.pl, *.pm> files for you.
So B<pod2sdf> is only needed when one wants to make extensive use
of the powerful features of SDF and marking them with C<=begin sdf>
and C<=end sdf> gets inconvenient.

=cut

Youez - 2016 - github.com/yon3zu
LinuXploit