Perl code which do the same thing as windows bat.
like
@start /wait C:\prcwth\processInfo.exe "THTPPCTL"
call the .exe from the console , then wait until the process is finished.
Hi,all
I want to change the enviroment variable with perl , which call windows console as bat , just like
@start /wait C:\prcwth\processInfo.exe "THTPPCTL"
and wait like
FOR /L %%d IN (50,-1,0) DO ( ping 127.0.0.1 -n 2 > nul
,
thank you.
I am agree with MOrac,he is wonderful, and make the right answer.and thanks to everybody who answered me.It creats different database instance with different $db_type,and return the database system time and so on with db instance.When it goes wrong , then it is wrong.
sub new : method # public static
{
my ($class, $db_type, $conn_str, $encoding) = @_;
my $self = {};
my $dbio_impl;
# ????????
my $impl_class = "GECC::JobRequest::DAO::${db_type}DBIOImpl";
eval {
require $impl_class;
$dbio_impl =...
I am a newbie of perl , and I see the source code like this
=pod
=over
=item rollback
I think it is a perldoc, just like javadoc, who can tell me how to read and write perldoc ? thank u.
sub new : method
{
my ($class, $dbo) = @_;
my $self = {-dbo => $dbo};
bless $self, $class;
}
I saw this code at somewhere , but I didn't really understand it , who can tell me what is the -dbo means , and what is the mean of {-dbo => $dbo}?
I just studied perl from last week, and exactly I don't know perl at all, I am sorry for that so strange question. I just want to know is perl like java ? and what is is package definetion in perl ? How to use it ?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.