in reply to Can't use string (">> /$1/$2/figs/Com/dis") as a symbol ref while "strict refs" in use
Without seeing more of your code, I can’t say what’s really going on. It looks like you assigned to the global variable $RESULT the string ">> somewhere" and then tried to open that using the single argument form of open. For example:open(RESULT, ">> somewhere") || die "can't append to somewhere: $!";
Is that what you did? If so why?$RESULT = ">> somewhere"; open(RESULT) || die "can't append to $RESULT: $!";
And what is with the screwy `cat` business, anyway? :(
|
|---|