On Saturday 01 March 2003 07.45, Jack wrote:
> Hello Henrik,
>
> I changed the script as you said as
>
> #!/usr/bin/perl
>
> while ($url = <>) {
> @list = split("/", $url);
> $newurl="http:/";
> for($i=3;$i<@list;$i++) {
> $newurl=$newurl."/".$list[$i];
> }
> print "$newurl";
> }
Why did you remove the BEGIN { $|= 1 }; line? This is required.. (can
be simplified to $|=1; when not using -p but the BEGIN construct
also works just fine..)
Regards
Henrik
Received on Sat Mar 01 2003 - 03:01:48 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:13:52 MST