Pages: 123

About anything > Any perl programmers here? =) 


  (30.01.06 00:37)  

#!/usr/bin/perl
my (@arr,$i)=("The","Mage","Of","Chaos");
@arr[4,5]=("was","here=)");
print("@arr\n");
for($i=0; $i<=$#arr; $i++)
{
if($arr[$i]=~/([a-z]{1}a)/i)
  {
     print("yes!\n");
  }
else
  {
    print("no!\n");
  }
}


What is the output? =))


  (30.01.06 15:35)  

:confused:


  (31.01.06 17:36)  

=P


  (31.01.06 18:08)  

#!/usr/local/bin/perl

open(PASS, "sort -n -t : +3 -4 +0 /etc/passwd|") || die "WebAster Where my Faile";
while(<PASS>)
   {
   ($login, $pass, $uid, $gid, $name, $home_dir, $shell) = split(':');
   write();
   }
close(PASS);
exit 0;


  (31.01.06 18:20)  

18:19 [] private [WebAster] your code doesnt work ^^
18:19 [WebAster] private [] becouse this for unix ;)


  (31.01.06 18:24)  

And don't use compilers ^^

> WebAster

Its perl for windows topic ok? =)


  (31.01.06 23:47)  

:str:


  (10.02.06 01:17)  

up =)
come on people :) its an easy one


  (10.02.06 14:03)  

Have been trying to solve that one without the help of any software for about 5 mins. I give up! ))) Looks like my school knowledge of Quick Basic and Turbo Pascal ain't enough! )))


  (11.02.06 23:20)  

Its very similar to PHP  :ponder:


  (15.02.06 15:07)  

may be yes?%))


  (15.02.06 21:19)  

The Mage of Chaos was here=)
no!

Right? )


  (17.02.06 17:54)  


> The Mage of Chaos was here=)
> no!
>
> Right? )

nope =)


  (19.02.06 19:01)  

The Mage Of was here=)
no!

...?=)


  (22.02.06 00:31)  


> The Mage Of was here=)
> no!


nope =)


  (22.02.06 00:35)  

> The Mage of Chaos was here=)
this part is right, but what about the rest? :)


  (24.02.06 18:45)  

No!
No!
No!
No!
No!
No!

? :))


  (25.02.06 01:08)  


> Smile of Rain [7]   (24.02.06 18:45)
> No!
> No!
> No!
> No!
> No!
> No!

stop guessing :DDDD

wrong answer :)


  (26.02.06 21:23)  

:tease:


  (26.02.06 21:26)  

then

yes!
yes!
yes!
yes!
yes!
yes!

or

No!
No!
No!
No!
No!
yes!

?=))

:laugh:


Pages: 123
© 2002 - 2026, «www.Combats.com»™
All rights reserved