User Profile

Collapse

Profile Sidebar

Collapse
historysav
historysav
Last Activity: Jun 18 '10, 10:39 PM
Joined: May 28 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Hi this is whole code ..
    Code:
    #!/usr/bin/perl
    
    $putword=0;
    $q63=7;
    
    &getfile("query63.txt");
    
    sub getfile   {
    open (FILE, $_[0]);
    
    
    my @data = <FILE>;
    close (DATA);
    
    
    for($i=0; $i<=$#data;$i++){
    
    $index=$i;
    
    
    
    @words=split(/\s+/,$data[$index]);
    $count=$#words;
    ...
    See more | Go to post

    Leave a comment:


  • I cannot access hash of hash from outside function?

    Here my code, when I write "print $query{2}{ctf}; ", I got nothing but When I write inside of function, I got value....
    How can I access it from outouf function? How can I send my %query hash to another function?

    Code:
    ,;&getfile("query63.txt");
    print $query{2}{ctf};
    
    sub getfile   {
    open (FILE, $_[0]);
    
    my @data = <FILE>;
    close (DATA);
    
    for($i=0; $i<=$#data;$i++){
    ...
    See more | Go to post
No activity results to display
Show More
Working...