Search results

  1. S

    need help writing perl script (easy)?

    I need to write a program which will print out all file/directory names in the directory given So a sample invocation of a perl script pscript would be pscript /usr/local And it would out the file/directory names in /usr/local
  2. S

    need help understanding perl code (short. 1 line of code)?

    I'm new to perl, could someone explain to me exactly how this works my($directory, $filename) = $text =~ m/(.*\/)(.*)$/; print "D=$directory, F=$filename\n"; The first line is the confusing line, how does the grep line work and then pass it along to $text and my($directory, $filename). Also...
  3. S

    need help writing perl script (easy)?

    I need to write a program which will print out all file/directory names in the directory given So a sample invocation of a perl script pscript would be pscript /usr/local And it would out the file/directory names in /usr/local
  4. S

    need help writing perl script (easy)?

    I need to write a program which will print out all file/directory names in the directory given So a sample invocation of a perl script pscript would be pscript /usr/local And it would out the file/directory names in /usr/local
  5. S

    need help writing perl script (easy)?

    I need to write a program which will print out all file/directory names in the directory given So a sample invocation of a perl script pscript would be pscript /usr/local And it would out the file/directory names in /usr/local
  6. S

    need help understanding perl code (short. 1 line of code)?

    I'm new to perl, could someone explain to me exactly how this works my($directory, $filename) = $text =~ m/(.*\/)(.*)$/; print "D=$directory, F=$filename\n"; The first line is the confusing line, how does the grep line work and then pass it along to $text and my($directory, $filename). Also...
  7. S

    need help writing perl script (easy)?

    I need to write a program which will print out all file/directory names in the directory given So a sample invocation of a perl script pscript would be pscript /usr/local And it would out the file/directory names in /usr/local
  8. S

    need help understanding perl code (short. 1 line of code)?

    I'm new to perl, could someone explain to me exactly how this works my($directory, $filename) = $text =~ m/(.*\/)(.*)$/; print "D=$directory, F=$filename\n"; The first line is the confusing line, how does the grep line work and then pass it along to $text and my($directory, $filename).
Back
Top