Mike Martin wrote:
Its actually a word wrap function, because I couldn't get Text::Wrap
or Gtk wrap to work right.
Like this:
use strict;
use warnings;
use Text::Wrap;
my $string="ffmpeg -v 2 -i \"/home/mike/vcr58uc.avi\" -itsoffset -0.1 -i
\"/home/mike/vcr58uc.avi\" -target dvd -y -s 3
On 05/09/07, Tom Phoenix <[EMAIL PROTECTED]> wrote:
> On 9/5/07, Mike Martin <[EMAIL PROTECTED]> wrote:
>
> > I am having a problem with looping a string.
>
> Have you tried stepping through your code in the debugger?
>
> > while ($count lt $str_length){
>
> That looks like a place where you used a
On 9/5/07, Mike Martin <[EMAIL PROTECTED]> wrote:
> I am having a problem with looping a string.
Have you tried stepping through your code in the debugger?
> while ($count lt $str_length){
That looks like a place where you used a string comparison ('lt') but
maybe meant a numeric comparison ('<
Mike Martin wrote:
I am having a problem with looping a string.
This is my code
my $count=0;
my $str_length=length($string1);
while ($count lt $str_length){
This code only runs once not any more
You are using the wrong operator to compare numbers. See "perldoc perlop".
--
I am having a problem with looping a string.
This is my code
my $string="ffmpeg -v 2 -i \"/home/mike/vcr58uc.avi\" -itsoffset -0.1
-i \"/home/mike/vcr58uc.avi\" -target dvd -y -s 352x288 -qscale 5 -bf
2 -g 15 -acodec mp2 -ac 2 -ab 64kk -me_range 63 -aspect 4:3 -map 1:0
-map 0:1 \"/home/mike/vcr