Re: Probably silly question about loop

2007-09-06 Thread Rob Dixon
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

Re: Probably silly question about loop

2007-09-05 Thread Mike Martin
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

Re: Probably silly question about loop

2007-09-05 Thread Tom Phoenix
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 ('<

Re: Probably silly question about loop

2007-09-05 Thread Gunnar Hjalmarsson
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". --

Probably silly question about loop

2007-09-05 Thread Mike Martin
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

RE: Silly question

2003-09-26 Thread Gupta, Sharad
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; >

Re: Silly question

2003-09-22 Thread Jeff 'japhy' Pinyan
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

Silly question

2003-09-22 Thread Gupta, Sharad
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 '

RE: Short silly question

2003-07-21 Thread Bob Showalter
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

Re: Short silly question

2003-07-18 Thread Rob Dixon
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

Short silly question

2003-07-18 Thread Gabor Urban
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]

Re: silly question

2003-07-10 Thread zentara
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

RE: silly question

2003-07-09 Thread jdavis
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

RE: silly question

2003-07-09 Thread NYIMI Jose (BMB)
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

Re: silly question

2003-07-09 Thread LI NGOK LAM
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

RE: silly question

2003-07-09 Thread Tim Johnson
- 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

silly question

2003-07-09 Thread john tarn
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]

RE: Silly question

2002-10-31 Thread royce . wells
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

Re: Silly question

2002-10-31 Thread Frank Wiles
.--[ 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

RE: Silly question

2002-10-31 Thread Nikola Janceski
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

Silly question

2002-10-31 Thread Gajo Csaba
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

Re: silly question

2002-03-08 Thread William.Ampeh
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

silly question

2002-03-07 Thread M z
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

RE: ok silly question

2001-06-26 Thread John Edwards
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

ok silly question

2001-06-26 Thread royce . wells
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