I've just started to work with Php 5 OO.
function totalVehicleWeight calculates the total weight of the vehicle. It return that to the screen of the user.
function diffFrontRear calculates the diff of the front and rear but it's also need the input of function totalVehicleWeight.
How should I...
I would like to create a regex which would replace any character from position six with ~1
Example:
input: This Is A Text.abc
output: Thisis~1.abc
I'm stuck on this one.
Hi,
I've created a file dialog where an user can choose a txt file.
There is also a cancel button which I need to configure but I don't know how to approach it?
Disabling the cancel button will also be fine.
sub Load_file
{
$file_path_entry -> delete('0.0', 'end');
my $file;
my...
system ("mbrola $db extern.pho extern.wav");
system ("bruceplayer.exe extern.wav");
Extern.wav has a duration of ten minutes. I've created a Stop button so that the user can stop bruceplayer.exe anytime.
How can I terminate this process?
I've found out that wmplayer.exe /play extern.wav will auto play the file from commandline.
How do I pass /play within my scipt?
system ($wmp_path /play external.wav);
It throws the message "Search pattern not terminated"
How do I solve this?
Hi,
I've a wav file which should be automatically played with Windows Media Player but it doesn't.
$wmp_path = "C:/Program Files/Windows Media Player/wmplayer.exe";
$wmp_path =~ s/\//\\/g; #convert / to \
system ($wmp_path external.wav);
Windows Media Player is automatically started but it...
Thanks for the fast response
I've read it but it's not exactly what I mean. I'm using wperl.exe myscript.pl
This works fine but when I call a windows command inside myscript.pl a dosbox flashes by and I want to prevent that for the user.
I'm using perl Tk and I have to call a couple of Windows commands but they are executed in a dosbox.
I want to prevent a dosbox is opened or at least hidden for the user. Is there any way to prevent that?
system ("test.txt|perl prep|afbreek.exe|klank.exe|perl kleur >output.pho");
system...
Hi,
I'm new to Perl using regex.
I wrote a simple program which search the userinput for a match.
When I start the program it works fine but I get the error message below.
I'm doing something wrong but what exactly?
The error message :
Use of unintialized value $_ in pattern match (m//) at...
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.