For some reason, there is a newline feed not being cleaned out from a variable I have. The code i am using is;
my $new_cat = $_;
chomp $new_cat;
$new_cat =~ s/_/ /g;
$new_cat =~ s,\n,,g;
...if I put an extra bit of Regex in that cleans out \W, then it doesn't show the newline. The problem with that, is it cleans out stuff I don't want removing, such as / and \.
Anyone got any ideas why it would do this?
Cheers
Andy (mod)
andy@ultranerds.co.uk
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
my $new_cat = $_;
chomp $new_cat;
$new_cat =~ s/_/ /g;
$new_cat =~ s,\n,,g;
...if I put an extra bit of Regex in that cleans out \W, then it doesn't show the newline. The problem with that, is it cleans out stuff I don't want removing, such as / and \.
Anyone got any ideas why it would do this?
Cheers
Andy (mod)
andy@ultranerds.co.uk
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates

