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 MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by skatun

  1. skatun

    I have an issue with regex and getting the whole substrings

    my first code does not work when I use absolute file names: $filename = "c:/Perl/jobs.txt"; $filename2 = "c:/Perl/batch.txt"; my @outlines; open ( FILE, $filename) or die print "help"; @lines = <FILE> ; close FILE; # @ lines contains strings like these...
  2. skatun

    I have an issue with regex and getting the whole substrings

    I am running some large calculations in fluiddynamics which can be executed with cfx5pre, cfx5solve and cfxpost commands with appropiate attributes. i would like to run several calculations after each other. I was thinking about adding lines to a textfile with the commands. jobs.txt then i...
  3. skatun

    Edit an space dlimted file from excel

    I want to add @]@[ before each cell in excel how can do this with perl. I almost got it to work!! It worked fine with comma except then all my white spaces are gone... $filename = "Bok1.prn"; $filename2 = "bok2.txt"; open ( FILE, $filename) or die "Cannot open file: $!"; print "file open for...
  4. skatun

    I have an issue with regex and getting the whole substrings

    Thanks it works superb!!!
  5. skatun

    I have an issue with regex and getting the whole substrings

    I am trying to get out the filenames I haved defined in my $string, but it only prints : so the first printed line should look like: cfx5pre -batch test.cse any help would be great $string = "pre:test.cse;solve:test.def,test.ccl,test.res,test;post:test.cse"; @array = split /;/ , $string...

Part and Inventory Search

Back
Top