Re: Is that I can do something like that ?

2006-10-26 Thread Bryan R Harris
Bryan R Harris wrote: 2) perl -le '$x = qw/a b c d e/; print $x' e Or better what is (2) doing? Read up on the comma operator in perlop (and I know there are no literal commas in (2) but qw/a b c d e/ behaves exactly the same as ('a', 'b', 'c', 'd', 'e').) perldoc perlop Why

Is that I can do something like that ?

2006-10-25 Thread Mug
Hi all, I don't know if that anyway I can know what should I pass back from right hand side to left hand side, like : my $x = qw/a b c d e / ; # so I have $x = 5 my ($x) = qw / a b c d e / ; # then I have 'a' or like $data = F ; # reads 1 line from file; @data = F ; # reads all line from the

Re: Is that I can do something like that ?

2006-10-25 Thread Adriano Rodrigues
On 10/25/06, Mug [EMAIL PROTECTED] wrote: I actually want to write a piece of code like that : my %u_info = user_detail ( $ENV{QUERY_STRING} ); # I have $u_info{id} = 'foo' , $u_info{pass} = 12345 my @attribs = user_detail ( $ENV{QUERY_STRING} ); # I have @attribs = ( 'foo', 12345 ); while I

Re: Is that I can do something like that ?

2006-10-25 Thread D. Bolliger
Mug am Mittwoch, 25. Oktober 2006 13:12: Hi all, Hello Mug I'm not shure if I understand your question... I don't know if that anyway I can know what should I pass back from right hand side to left hand side, like : my $x = qw/a b c d e / ; # so I have $x = 5 The list on the right hand

Re: Is that I can do something like that ?

2006-10-25 Thread Mumia W.
On 10/25/2006 06:12 AM, Mug wrote: Hi all, I don't know if that anyway I can know what should I pass back from right hand side to left hand side, like : my $x = qw/a b c d e / ; # so I have $x = 5 my ($x) = qw / a b c d e / ; # then I have 'a' or like $data = F ; # reads 1 line from file;

Re: Is that I can do something like that ?

2006-10-25 Thread Adriano Rodrigues
On 10/25/06, Adriano Rodrigues [EMAIL PROTECTED] wrote: On 10/25/06, Mug [EMAIL PROTECTED] wrote: I actually want to write a piece of code like that : my %u_info = user_detail ( $ENV{QUERY_STRING} ); # I have $u_info{id} = 'foo' , $u_info{pass} = 12345 my @attribs = user_detail (

Re: Is that I can do something like that ?

2006-10-25 Thread D. Bolliger
John W. Krahn am Mittwoch, 25. Oktober 2006 19:04: D. Bolliger wrote: Mug am Mittwoch, 25. Oktober 2006 13:12: I don't know if that anyway I can know what should I pass back from right hand side to left hand side, like : my $x = qw/a b c d e / ; # so I have $x = 5 The list on the right

Re: Is that I can do something like that ?

2006-10-25 Thread Bryan R Harris
D. Bolliger wrote: Mug am Mittwoch, 25. Oktober 2006 13:12: I don't know if that anyway I can know what should I pass back from right hand side to left hand side, like : my $x = qw/a b c d e / ; # so I have $x = 5 The list on the right hand side is evaluated in scalar context, and

Re: Is that I can do something like that ?

2006-10-25 Thread John W. Krahn
Bryan R Harris wrote: D. Bolliger wrote: Mug am Mittwoch, 25. Oktober 2006 13:12: I don't know if that anyway I can know what should I pass back from right hand side to left hand side, like : my $x = qw/a b c d e / ; # so I have $x = 5 The list on the right hand side is evaluated in scalar

Re: Is that I can do something like that ?

2006-10-25 Thread Dr.Ruud
Bryan R Harris schreef: [attribution repaired] John W. Krahn $ perl -le' $x = qw/ a b c d e /; print $x' e Why? That doesn't make sense to me. Do your tries with perl -MO=Deparse -wle '...' and you'll see. -- Affijn, Ruud Gewoon is een tijger. -- To unsubscribe, e-mail: [EMAIL

Re: Is that I can do something like that ?

2006-10-25 Thread Bryan R Harris
2) perl -le '$x = qw/a b c d e/; print $x' e Or better what is (2) doing? Read up on the comma operator in perlop (and I know there are no literal commas in (2) but qw/a b c d e/ behaves exactly the same as ('a', 'b', 'c', 'd', 'e').) perldoc perlop Why would this be considered a

Re: Is that I can do something like that ?

2006-10-25 Thread John W. Krahn
Bryan R Harris wrote: 2) perl -le '$x = qw/a b c d e/; print $x' e Or better what is (2) doing? Read up on the comma operator in perlop (and I know there are no literal commas in (2) but qw/a b c d e/ behaves exactly the same as ('a', 'b', 'c', 'd', 'e').) perldoc perlop Why would this be