English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

perl -pe "s#(/Perms>)#' ' x length $1#ge;
s#(/Ff 1)(?=.*?/Lock)#' ' x length $1#ge;
s#(?out.pdf

2006-07-15 08:58:11 · 4 answers · asked by cordless_man 1 in Computers & Internet Programming & Design

4 answers

what do you mean translate???


that's like saying... who can translate this:

$date = date('j');
if($date = 4){
echo"The number four, and today are the same numbers!!! Haha!";
}else{
echo"nope, not the same";
}
?>


maybe not the same, but it's like a foreign language, it wont translate to something in english, spanish, or french!!!

most of those are just holders, and some represent things, such as the $date in php is a quick way of saying today's date.

2006-07-15 09:58:00 · answer #1 · answered by alco19357 5 · 0 0

I'm not entirely sure but I can puzzle out some of it.

Perl -pe : -p puts a while(<>) loop around the code and prints the result; -e executes the code that follows. Not sure what the combination does in this context; it may be missing an input.

s#(/Perms>)#' ' x length $1#ge;
s is substitution operator. Whatever symbol comes next is used as a delineator. Basic function is to replace whatever is in first section with what's in the second. Parens reserve whatever matches their contents for later access, $1 is match of first parens.
Skipping to the end, g applies substitution globally, that is to all matches found. More importantly, e says to evaluate the substitution string as an expression.

' ' x length $1 specifies as many spaces as the match in first parens is long.

So this line replaces every instance of /Perms> with a like number of spaces. The second line replaces /Ff1 followed by the specified assignment statment to spaces.

s#(?out.pdf appears to be a fragment?

2006-07-15 10:17:12 · answer #2 · answered by injanier 7 · 0 0

Eat at Joe's

2006-07-15 09:01:24 · answer #3 · answered by WhiteHat 6 · 0 0

no, I can't

2006-07-15 09:01:47 · answer #4 · answered by sylvia g 2 · 0 0

fedest.com, questions and answers