Hi,
On Wed, Dec 22, 2004 at 08:59:11PM +0100, Moritz Bellach wrote:
> > > <FILEin> =~ s/\+/-/g
> > ^^^^^^^^^
> > bearbeitet das nicht nur alle 2 Zeilen?
> > du meinst nicht zuf�llig '$_ =~ s/\+/-/g;'?
> hmm interessant: hab +> und das ^^^^^^^^^^^^ da verwendet. jetzt ist die
> datei nach dem ausf�hren des skripts einfach lehr!! gut das ich gebackupt
> hab...
> warum ist mir aber v�llig unklar.
Ist eigendlich klar.
/-------------(man perlopentut)-----
Mixing Reads and Writes
It is possible to specify both read and write access. All you do is
add a "+" symbol in front of the redirection. But as in the shell,
using a less-than on a file never creates a new file; it only opens an
existing one. On the other hand, using a greater-than always clobbers
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(truncates to zero length) an existing file, or creates a brand-new one
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
if there isn't an old one. Adding a "+" for read-write doesn't affect
whether it only works on existing files or always clobbers existing
ones.
\--------------------------------
also einfach kleiner Zeichen nehmen.
Gruss Benny
----------------------------------------------------------------------------
PUG - Penguin User Group Wiesbaden - http://www.pug.org