Re: perl scalar

2006-09-26 Thread Marc Sacks
Odd. I just tried the same code snippet and it worked fine. You might try putting a space before and after your = signs. I don't know if that makes a difference, but it won't hurt. Marc Sacks [EMAIL PROTECTED] D. Bolliger wrote: elite elite am Montag, 25. September 2006 22:27: I not

Re: perl scalar

2006-09-26 Thread D. Bolliger
[rearranged to bottom posting style] Marc Sacks am Dienstag, 26. September 2006 14:25: D. Bolliger wrote: elite elite am Montag, 25. September 2006 22:27: I not sure what i doing wroung. I'm not sure either :-) Street=Wright; This is wrong syntax; Street is not a scalar variable,

Re: perl scalar

2006-09-26 Thread Marc Sacks
I guess I didn't quite use the original code. I made the mistake of typing what it should have been instead of what it was: #!/usr/bin/perl $street=Wright; print $street\n; $street=Washington; It's amazing what a dollar sign and a change of case can do. -Marc Hello Marc Odd. I just

Re: perl scalar

2006-09-25 Thread elite elite
I not sure what i doing wroung. Street=Wright; print $street\n; $street=Washington; And i get this output. Street/[EMAIL PROTECTED] ~]$ Craig __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around

Re: perl scalar

2006-09-25 Thread D. Bolliger
elite elite am Montag, 25. September 2006 22:27: I not sure what i doing wroung. I'm not sure either :-) Street=Wright; This is wrong syntax; Street is not a scalar variable, while $street would be. print $street\n; $street is undef here, you didn't assign anything to the $street

perl scalar

2006-09-24 Thread elite elite
How do i Assign'Wright to the scalar how do i do that?And how do i change a value of $street to 'Washington' How do i print $street on it own line just like hello world? Craig __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam

Re: perl scalar

2006-09-24 Thread Owen Cook
On Sun, 24 Sep 2006, elite elite wrote: How do i Assign'Wright to the scalar how do i do that?And how do i change a value of $street to 'Washington' $what_ever = Wright; $what_ever = I have changed it from Wright to this; $street = 'Washington'; How do i print $street on it own line

Re: perl scalar

2006-09-24 Thread D. Bolliger
Owen Cook am Montag, 25. September 2006 00:36: On Sun, 24 Sep 2006, elite elite wrote: How do i Assign'Wright to the scalar how do i do that?And how do i change a value of $street to 'Washington' Hello Craig Sounds like a homwork... ;-) Type in the cmdline: perldoc perlintro the

perl scalar

2006-09-20 Thread elite elite
how would i create a scalar? __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: perl scalar

2006-09-20 Thread Andy Greenwood
if you use strict; then you'll need to declare it with my. If you don't (and you should think about that decision again) then you can leave off the my. my $variable = somevalue; $ means it's a scalar variable @ is for arrays % is for hashes On 9/20/06, elite elite [EMAIL PROTECTED] wrote:

Re: perl scalar

2006-09-20 Thread Jeff Pang
how would i create a scalar? Hi, Scalar is differenet distinctly from list.In perl both array and hash belong to list,while common variable belong to scalar.When you say, my $varA; our $varB; local $varC; You get the perl variable and they're scalar. Hope I'm correct. -- Jeff Pang