Search results

  1. R

    Results from a system call

    Is it possible to put the results from a system call into a variable? I tried: $variable = system("fgrep date $file"); print "VARIABLE: $variable\n"; The results from the system call print to STDOUT, but when I print $variable, it prints: VARIABLE: 0 I assume that the system call...
  2. R

    Regular expression - range of numbers

    I am writing a perl program that takes the month of the year as input. I want to check the input and make sure it is a digital between 1 and 12 and if it not, keep looping until it is. Also, is it possible to check to see is the input is exactly between 1 and 12 (i.e. will accept 12 but not...
Top