freelanceprogrammers.org Forum Index » Perl

Re: Still new to perl


View user's profile Post To page top
dodekaedergu... Posted: Thu May 13, 2004 10:33 am


Joined: 03 May 2004

Posts: 8
Re: Still new to perl
> open (IN,"ssh $srv_name cat /etc/passwd|") || die "Cannot open file
> on $srv_name";
> while (<IN>)
>
> {
> @uid_sort = $uid = (split /:/) [2];

This statement doesn`t make much sense to me. Check out the content of
@uid_sort.
IMO it should contain only 1 element, since you are assigning a scalar
to it.

Ronald
Reply with quote
Send private message
Post new topic Reply to topic
Display posts from previous:   
 

All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
Booking Calendar - reservation calendar script
Land Surveying - total station instruments and equipments
China Wholesale - Electronics Products
Character Studio - Tutorials and Help