Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. KeziaKristina

    Get header from url file ?

    How can i get/read a header of url ? I have try this function, function get_headers($host, $path = "/") { $fp = fsockopen ("$host", 80, &$errnr, &$errstr) or die("$errno: $errstr"); fputs($fp,"GET $path HTTP/1.0\n\n"); while (!$end) { $line =...
  2. KeziaKristina

    Sorting array of array

    I have problem with sorting an array of array. @array = ( [200,3], [100,5], [250,6], [700,5], [370,4], ); I want to sort descanding the first elemen of array on each index. The result is like this : @array = ( [700,5], [370,4], [250,6], [200,3], [100,5]...
  3. KeziaKristina

    Problem with sorting

    That code would be work if the hash like this: %HoA = ( animal => ["tiger"], fruit => ["banana","starfruit","melon"], country => ["Australia","England"] ); And after sorting the hash would be : %HoA = ( fruit =>...
  4. KeziaKristina

    Problem with sorting

    I have source code something like this : %HoA = ( '$b' => ['$x','$y'], '$x' => ['$t','$u'], '$a' => ['$e','$f','$g'], ); #sort hash by the number of elemens for $family ( sort { @{$HoA{$b}} <=> @{$HoA{$a}} } keys %HoA ) { print &quot;$family: @{ $HoA{$family} }\n&quot;; } print...
  5. KeziaKristina

    Match a string with one of a list regex-URGENTLY!

    Hi Mike, I didn't get the module from the link that you suggested, but I get the module form http://www.CPAN.org And from that site I get a module that exactly right as I need. The Module is Parse::Lex Thanks Mike Thanks for jaa too.. God Bless U
  6. KeziaKristina

    Match a string with one of a list regex-URGENTLY!

    Thanks Mike, But I still don't understand working with object in Perl. I know just a little about Perl. I tried to read your suggested link. Is Parse::Earley not default object in Perl? I tried to download it but it failed.
  7. KeziaKristina

    Match a string with one of a list regex-URGENTLY!

    Hi, I need help to resolve my problem.I have tried resolved it in a week but I didn't get the solution. The problem is like this: I have a string like this (for example, it can be more complex): $str = '$my_var = $your_var + 2;'; I want to split the string based on a list of regexp in an array...
  8. KeziaKristina

    $_ $&amp; $+ $` and the other $

    Thanks svar.. Your help so helpfull... Kezia Kristina
  9. KeziaKristina

    $_ $&amp; $+ $` and the other $

    I am new comer in Perl, and i still confuse with the differences among $_ $& $+ and the other $. Anybody can help to explain that. Please with example so I can more understand. Thanks.
  10. KeziaKristina

    match with regular expresion !

    I have a problem to match a string with some regular expresion. for example i have regular expresion saved in associative arrays like this %re=qw{ 1 \$[a-z]+ 2 \+ 3 \= 4 [0-9]}; and i have a string like this $str = '$s += 10' i'm trying to match those each part of string with regular...
  11. KeziaKristina

    Get more than one match regular expression in a string

    I have a problem like this. I have a file contain : <HTML> <BODY> The amount of goods : <?php print $sesuatu; $a++; ?> <img src='kitty.gif'> <form action='<?php print $PHP_SELF?>'> </BODY> </HTML> I want to get ALL of the string between <?php and ?>and I have tried this way: Put all the...
  12. KeziaKristina

    Can Java Use Mysql for database ?

    Can I use Mysql to become my database in my java application ? if it's can. where can i get some tutorial to do this ?? Thanks, Danang
  13. KeziaKristina

    Get a part of string

    How can I get a part of string which contain newline (\n)? Ex: $string = &quot;<HTML> \n <BODY> \n <?php print &quot;Something 2 print&quot;;\n print $a; \n ?> </BODY> \n </HTML>\n&quot;; I want to get string between <?php .... ?>. And how can i get them? I have try it with many way...

Part and Inventory Search

Back
Top