in reply to thanks, i'm new. rtfm right? :)

My solution would be to use spilt(), because L love split().
  try something like "($tempflie, $garbage) = split(/./);"
  this should split $_ at any "." into $
  tempfile and $garbage. I beleive that if there isn't a "."
  it doesn't split anything up.

Replies are listed 'Best First'.
RE: RE: thanks, i'm new. rtfm right? :)
by extremely (Priest) on Oct 27, 2000 at 03:18 UTC
    I can't believe someone mod'ed this down without pointing out why...

    If you want to split on the period char you need to do it one of these ways...

    split(/\./); # or split(/[.]/);

    The period is special in regular expressions, like the one split uses to find separators. You just told split that every character was a legal separator and if you do that you get a big fat nada...

    --
    $you = new YOU;
    honk() if $you->love(perl)