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 TouchToneTommy 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. broloc

    pattern matching

    opss sorry i forgot..ok the data looks like this alert TCP $external any->$internal any (msg: "ISD282/shellcode....) i just want to update the data according to the IDS num.if the IDS num for example 'IDS282' not exist in the file A so it will take sentence IDS282 and copy it to file B...
  2. broloc

    pattern matching

    Hi all, i got problem about pattern matching.Could u all please give me some idea how i can do pattern macthing between 2 file. ok this is the scenario.. i got file A and file B.File A is existing data and File B is a downloadable data.What i'm going to do is i want to update file A using file...
  3. broloc

    regular expression-matching n character of a string

    maybe i didn't put the question right.i don't want to determine the number of character matched.now..i have a string,$mystring=charmed.and user will be ask to enter an input(a string of course),$input..and my program will determined if $input matched with $mystring.if it matched,my program will...
  4. broloc

    regular expression-matching n character of a string

    how do i match n character of a string using regular expression?..for example i got a string charmed,i want at least 4 character matched with exact position,so that if i keyed in cracked,the expression will return true.any advice will be much appriciated.thanx.
  5. broloc

    counting string length

    thnks a lot guys..got that code working already;)
  6. broloc

    counting string length

    any function in perl to count string length?i've tried length($string) but couldn't make it work.do i have to initialize any module to work with this function?
  7. broloc

    BigFloat.pm module

    million thanks to u..now,all i have to do is change the number '3' to decide how many floating point to be displayed.thnx!
  8. broloc

    BigFloat.pm module

    how do i use the ffround() function in BigFloat.pm? i'd try something,but the output is not what i want.here's my code. #!usr\bin\perl use Math::BigFloat; print &quot;Enter input:&quot;; $string = <STDIN>; chomp $string; $f = Math::BigFloat->new($string); $value = $f->ffround(zero); print...
  9. broloc

    perl/tk

    hi all.. 1). have u ever heard about perl/tk. 2). can i use perl into tcl/tk thanx..
  10. broloc

    i need help..... i face problem

    what do you mean by this coding.. because i didn't see any different of this coding... could you explain more.. Instead of this... SQL= &quot;UPDATE Tugasan SET &quot; SQL = SQL + &quot;Markah='&quot; & markah & &quot;'&quot; SQL = SQL + &quot;where AsgnCode='&quot;& b &&quot;' &quot...
  11. broloc

    i need help..... i face problem

    what do u mean by : Not sure if its the problem you are having.. but it does look like there is no space before where.. SQL = SQL + &quot;Markah='&quot; & markah & &quot;'&quot; SQL = SQL + &quot;where AsgnCode='&quot;& b &&quot;' &quot; please explain more detail..tq :)
  12. broloc

    parsing text....

    needd help.... i have a problem using to parse the data from the file. could some one please help me.... i got a text file named 'nmap.txt'with the data: 80/tcp http 23/tcp telnet what i'm going to do is read the data from the file using regular expression. so my output should be like this...
  13. broloc

    i need help..... i face problem

    i need help..... i face problem when i want to update my mark obtained and comment data from this interface..if i key in data in mark obtained text field in first line of retrived data from database but by default system insert the same value for the other line..means in te database it contain...
  14. broloc

    problem with foreach loops..and chdir

    and...for ur suggestion and ur request for the output,can i get back to it later?..maybe tommorow or the other day.but..really,thanks for ur help.
  15. broloc

    problem with foreach loops..and chdir

    urm..i dun really know how to explain this..but i'll try my best. first the while loop while (my $seq = $in->next_seq()) i'm not sure what it does as i picked this solely from the module documentation.but i think it going to stop when it reach the end of the sequence.I have run this program...
  16. broloc

    problem with foreach loops..and chdir

    here's the things inside the foreach loop.i use bioperl module to access sequence of amino acids in the local database.this program suppose to match sequence that were entered by user with existed sequence and find out if it existed. sub access_seq { $in = Bio::SeqIO ->new(-file...
  17. broloc

    problem with foreach loops..and chdir

    ...somebody..please.. @filelocation = Location::destination ($database); $location = $filelocation[0]; chdir $location; opendir (DIR, &quot;$location&quot;)|| die &quot;Couldn't open directory \n&quot;; @fileList = readdir(DIR); foreach my $file (@fileList) { #...do...
  18. broloc

    what is the different...

    i have one problem...my script cannot compare the local time with the time that user give.here is my coding: #!/usr/local/bin/perl $time = 0; open(FILE,'readme.txt')||die$!; $realtime = <FILE>; while (defined($realtime != $time) ) { open(FILE,'readme.txt')||die$!; $realtime = <FILE>; ($sec...
  19. broloc

    reading directories

    somebody who kind enough to look at this...please. #read from Location.pm module which return #location of the databases. @filelocation = Location::destination ($database); $location = $filelocation[0]; chdir $location; opendir (DIR, &quot;$location&quot;)|| die &quot;Directory not...
  20. broloc

    How do i compare a date i have saved, with the system date?

    i have a question : can i compare the date using this statement if ($time == $localtime) { print &quot;date match\n&quot;; } please someone help me

Part and Inventory Search

Back
Top