Link to home
Start Free TrialLog in
Avatar of NorthReptile
NorthReptile

asked on

perl search replace doesn't work

I am trying to run a simple search and replace

my @buffer = split /\=/, `metaflac --show-tag=Artist \"$inFile\" 2>&1`;
      my $artist = substr $buffer[1], 0, length($buffer[1])-1;
      $artist = ~ s/\//-/;

for some reason the output of $artist is 18446744073709551615

As soon as i try and search and replace I no longer a string returned only a long number.

I always find i waste the most time on the simplest of thigns in perl
Avatar of NorthReptile
NorthReptile

ASKER

problem seems to be the space between = and ~!!
ASKER CERTIFIED SOLUTION
Avatar of ozo
ozo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thanks