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
Thank you.
-Sharad
-Original Message-
From: Jeff 'japhy' Pinyan [mailto:[EMAIL PROTECTED]
Sent: Monday, September 22, 2003 10:20 PM
To: Gupta, Sharad
Cc: [EMAIL PROTECTED]
Subject: Re: Silly question
On Sep 22, Gupta, Sharad said:
> package Foo;
>
On Sep 22, Gupta, Sharad said:
> package Foo;
> use overload q("") => sub {return shift->{bar}};
> $s = bless{bar=>"hello"}, Foo;
> print "$s\n"
>
>prints "hello".
Because you have overloaded "" for objects of class Foo.
> pac
Hi ALL,
I know i am missing something somewhere:
perl -e '
package Foo;
use overload q("") => sub {return shift->{bar}};
$s = bless{bar=>"hello"}, Foo;
print "$s\n"
'
prints "hello".
Whereas:
perl -e '
Gabor Urban wrote:
> Hi,
>
>
> could someone give me a quick info whar __END__ and __DATA__ lines
> are good for?
They are used to tell Perl to stop compiling the script at that point,
because whatever follows is either:
a) data to be read in to the script using the special DATA filehandle (se
Gabor Urban wrote:
> Hi,
>
>
> could someone give me a quick info whar __END__ and __DATA__ lines
> are good for?
>
Short silly answer:
__END__ing the program and starting the __DATA__ that you can
read from the implicit filehandle.
Rob
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For add
Hi,
could someone give me a quick info whar __END__ and __DATA__ lines are
good for?
Gabaux
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On 09 Jul 2003 09:09:34 -0700, [EMAIL PROTECTED] (John Tarn) wrote:
>i am still a novice in perl so forgive me for this simple question.
>what is socket programming? what do sockets do? is there a site
>that can explain them to me? thanks
>From a really simple viewpoint, I compare sockets to the
tuff with internet or unix sockets.
HTH,
jd
> -Original Message-
> From: john tarn [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 09, 2003 9:10 AM
> To: [EMAIL PROTECTED]
> Subject: silly question
>
>
> i am still a novice in perl so forgive me for this simpl
org/rfcs/rfc147.html
-Original Message-
From: john tarn [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 9:10 AM
To: [EMAIL PROTECTED]
Subject: silly question
i am still a novice in perl so forgive me for this simple question. what is socket
programming? what do sockets do? is
site =)
- Original Message -
From: "john tarn" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 10, 2003 12:09 AM
Subject: silly question
> i am still a novice in perl so forgive me for this simple question.
> what is socket programming? what do sockets do? i
-
From: john tarn [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 9:10 AM
To: [EMAIL PROTECTED]
Subject: silly question
i am still a novice in perl so forgive me for this simple question.
what is socket programming? what do sockets do? is there a site
that can explain them to me? thanks
i am still a novice in perl so forgive me for this simple question.
what is socket programming? what do sockets do? is there a site
that can explain them to me? thanks
john
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
actually it gives you an error :)
You misspelled variable!
You made a boo...boo
I know bad Halloween humor
If you set the examples...
you don't have to set the rules
Royce Wells
Unix Systems Engineer
let's suppose
$variable = "some text";
print "$v
.--[ Gajo Csaba wrote (2002/10/31 at 20:19:43) ]--
|
| While I'm at silly questions, I guess I could ask this one
| too: what is the difference between a " " and a ' '. I have
| a book that explains it to me in one sentence, and I don't
| understand one word that the author's
in text don't think of
them as variables or special characters.
> -Original Message-
> From: Gajo Csaba [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, October 31, 2002 2:20 PM
> To: perl-beginners
> Subject: Silly question
>
>
> While I'm at silly questi
While I'm at silly questions, I guess I could ask this one
too: what is the difference between a " " and a ' '. I have
a book that explains it to me in one sentence, and I don't
understand one word that the author's using (I suck at
English), so could someone explain it to me? An example
would
A good forum is the linux forum.
Go to www.redhat.com, and join a group in your geographical region.
A good forum is
[EMAIL PROTECTED]
__
William Ampeh (x3939)
Federal Reserve Board
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECT
does anyone know if there is a similar question form
for unix? my roomate is studying to become a sys
admin
and I'm trying to direct him to a similar email?
i.e. [EMAIL PROTECTED]???
__
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest fr
What does the output look like on the command line? It doesn't have <> tags
round it by any chance??
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 26 June 2001 16:49
To: [EMAIL PROTECTED]
Subject: ok silly question
I am working on a program that
I am working on a program that prints out script varibles to an html. When
I run it from the command line I see the variable. When the web page
(cgi-script runs) it eats them and just prints blank lines. An example
follows.
# this works
$ID=`id`
print "$ID"
#this doesnt
$STORE=`store_output.x o
25 matches
Mail list logo