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
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
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
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
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;
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 (
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
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
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
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
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
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
12 matches
Mail list logo